mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-25 20:11:34 +00:00
Warn if ProjectBuild passed lot if null
Fixed caused deprecations for it
This commit is contained in:
parent
fe0809230b
commit
b8fc5d4ace
2 changed files with 20 additions and 7 deletions
|
|
@ -82,7 +82,12 @@ final class ProjectBuildRequestTest extends TestCase
|
|||
|
||||
$part2->setName('Part 2');
|
||||
$part2->setPartUnit($float_unit);
|
||||
$this->lot2 = new PartLot();
|
||||
$this->lot2 = new class extends PartLot {
|
||||
public function getID(): ?int
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
};;
|
||||
$part2->addPartLot($this->lot2);
|
||||
$this->lot2->setAmount(2.5);
|
||||
$this->lot2->setDescription('Lot 2');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue