mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -53,11 +53,11 @@ class PartTest extends TestCase
|
|||
$part = new Part();
|
||||
$measurement_unit = new MeasurementUnit();
|
||||
|
||||
//Without an set measurement unit the part must return an int
|
||||
//Without a set measurement unit the part must return an int
|
||||
$part->setMinAmount(1.345);
|
||||
$this->assertSame(1.0, $part->getMinAmount());
|
||||
|
||||
//If an non int-based unit is assigned, an float is returned
|
||||
//If a non-int-based unit is assigned, a float is returned
|
||||
$part->setPartUnit($measurement_unit);
|
||||
$this->assertSame(1.345, $part->getMinAmount());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue