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:
Jan Böhmer 2025-10-18 23:32:20 +02:00
parent 05839a549c
commit 377feaf566
5 changed files with 47 additions and 10 deletions

View file

@ -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));
}
}