mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 11:09:29 +00:00
Use yellow alert box for notifying of empty bom on build, show infinite correclty and added translations
Fixes issue #1038
This commit is contained in:
parent
05839a549c
commit
377feaf566
5 changed files with 47 additions and 10 deletions
|
|
@ -114,4 +114,22 @@ class ProjectBuildHelperTest extends WebTestCase
|
|||
$this->assertSame(0, $this->service->getMaximumBuildableCount($project));
|
||||
|
||||
}
|
||||
|
||||
public function testGetMaximumBuildableCountEmpty(): void
|
||||
{
|
||||
$project = new Project();
|
||||
|
||||
$this->assertSame(0, $this->service->getMaximumBuildableCount($project));
|
||||
}
|
||||
|
||||
public function testGetMaximumBuildableCountAsString(): void
|
||||
{
|
||||
$project = new Project();
|
||||
$bom_entry1 = new ProjectBOMEntry();
|
||||
$bom_entry1->setName("Test");
|
||||
$project->addBomEntry($bom_entry1);
|
||||
|
||||
$this->assertSame('∞', $this->service->getMaximumBuildableCountAsString($project));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue