Fixed some return type deprecation messages

This commit is contained in:
Jan Böhmer 2023-04-15 19:33:39 +02:00
parent 558440168d
commit 1cee1abe00
37 changed files with 70 additions and 70 deletions

View file

@ -115,7 +115,7 @@ class ProjectBuildRequestTest extends TestCase
$this->project1->addBomEntry($this->bom_entry1c);
}
public function testInitialization()
public function testInitialization(): void
{
//The values should be already prefilled correctly
$request = new ProjectBuildRequest($this->project1, 10);
@ -127,19 +127,19 @@ class ProjectBuildRequestTest extends TestCase
$this->assertEquals(2.5, $request->getLotWithdrawAmount($this->lot2));
}
public function testGetNumberOfBuilds()
public function testGetNumberOfBuilds(): void
{
$build_request = new ProjectBuildRequest($this->project1, 5);
$this->assertEquals(5, $build_request->getNumberOfBuilds());
}
public function testGetProject()
public function testGetProject(): void
{
$build_request = new ProjectBuildRequest($this->project1, 5);
$this->assertEquals($this->project1, $build_request->getProject());
}
public function testGetNeededAmountForBOMEntry()
public function testGetNeededAmountForBOMEntry(): void
{
$build_request = new ProjectBuildRequest($this->project1, 5);
$this->assertEquals(10, $build_request->getNeededAmountForBOMEntry($this->bom_entry1a));
@ -147,7 +147,7 @@ class ProjectBuildRequestTest extends TestCase
$this->assertEquals(20, $build_request->getNeededAmountForBOMEntry($this->bom_entry1c));
}
public function testGetSetLotWithdrawAmount()
public function testGetSetLotWithdrawAmount(): void
{
$build_request = new ProjectBuildRequest($this->project1, 5);
@ -160,7 +160,7 @@ class ProjectBuildRequestTest extends TestCase
$this->assertEquals(3, $build_request->getLotWithdrawAmount($this->lot1b));
}
public function testGetWithdrawAmountSum()
public function testGetWithdrawAmountSum(): void
{
//The sum of all withdraw amounts for an BOM entry (over all lots of the associated part) should be correct
$build_request = new ProjectBuildRequest($this->project1, 5);