We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc645d2 commit 855922cCopy full SHA for 855922c
tests/Unit/SnipeModelTest.php
@@ -18,12 +18,14 @@ public function testSetsPurchaseDatesAppropriately()
18
public function testSetsPurchaseCostsAppropriately()
19
{
20
$c = new SnipeModel;
21
+ $c->purchase_cost = '';
22
+ $this->assertTrue($c->purchase_cost == null);
23
$c->purchase_cost = '0.00';
- $this->assertTrue($c->purchase_cost === null);
24
+ $this->assertTrue($c->purchase_cost == 0.00);
25
$c->purchase_cost = '9.54';
- $this->assertTrue($c->purchase_cost === 9.54);
26
+ $this->assertTrue($c->purchase_cost == 9.54);
27
$c->purchase_cost = '9.50';
- $this->assertTrue($c->purchase_cost === 9.5);
28
+ $this->assertTrue($c->purchase_cost == 9.5);
29
}
30
31
public function testNullsBlankLocationIdsButNotOthers()
0 commit comments