mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
Applied rector to test files
This commit is contained in:
parent
7ee01d9a05
commit
98dc553938
46 changed files with 42 additions and 102 deletions
|
@ -282,7 +282,7 @@ class AttachmentTest extends TestCase
|
|||
* @param string $property - property on instance being modified
|
||||
* @param mixed $value - new value of the property being modified
|
||||
*/
|
||||
public function setProtectedProperty(object $object, string $property, $value): void
|
||||
public function setProtectedProperty(object $object, string $property, mixed $value): void
|
||||
{
|
||||
$reflection = new ReflectionClass($object);
|
||||
$reflection_property = $reflection->getProperty($property);
|
||||
|
|
|
@ -42,7 +42,7 @@ class AbstractStructuralDBElementTest extends TestCase
|
|||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
// TODO: Change the autogenerated stub
|
||||
|
||||
//Build a simple hierachy
|
||||
$this->root = new AttachmentType();
|
||||
|
|
|
@ -104,9 +104,9 @@ class PartTest extends TestCase
|
|||
$this->assertSame(13.141, $part->getAmountSum());
|
||||
|
||||
//1 billion part lot
|
||||
$part->addPartLot((new PartLot())->setAmount(1000000000));
|
||||
$this->assertSame(1000000013.141, $part->getAmountSum());
|
||||
$part->addPartLot((new PartLot())->setAmount(1_000_000_000));
|
||||
$this->assertSame(1_000_000_013.141, $part->getAmountSum());
|
||||
$measurement_unit->setIsInteger(true);
|
||||
$this->assertSame(1000000013.0, $part->getAmountSum());
|
||||
$this->assertSame(1_000_000_013.0, $part->getAmountSum());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue