mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 20:28:54 +02:00
Applied rector suggestions
This commit is contained in:
parent
4106bcef5f
commit
20f32c7f12
170 changed files with 808 additions and 761 deletions
|
@ -110,7 +110,7 @@ class PartNormalizerTest extends WebTestCase
|
|||
$this->assertCount(1, $part->getPartLots());
|
||||
/** @var PartLot $partLot */
|
||||
$partLot = $part->getPartLots()->first();
|
||||
$this->assertSame(5.0, $partLot->getAmount());
|
||||
$this->assertEqualsWithDelta(5.0, $partLot->getAmount(), PHP_FLOAT_EPSILON);
|
||||
$this->assertNotNull($partLot->getStorageLocation());
|
||||
$this->assertSame('Test Storage Location', $partLot->getStorageLocation()->getName());
|
||||
|
||||
|
@ -130,7 +130,7 @@ class PartNormalizerTest extends WebTestCase
|
|||
//Must be in base currency
|
||||
$this->assertNull($priceDetail->getCurrency());
|
||||
//Must be for 1 part and 1 minimum order quantity
|
||||
$this->assertSame(1.0, $priceDetail->getPriceRelatedQuantity());
|
||||
$this->assertSame(1.0, $priceDetail->getMinDiscountQuantity());
|
||||
$this->assertEqualsWithDelta(1.0, $priceDetail->getPriceRelatedQuantity(), PHP_FLOAT_EPSILON);
|
||||
$this->assertEqualsWithDelta(1.0, $priceDetail->getMinDiscountQuantity(), PHP_FLOAT_EPSILON);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue