mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-03 05:55:16 +01:00
Fixed some return type deprecation messages
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user