feat: render the floor plan in html instead of svg
This commit is contained in:
1 parent
5a01054b0e
commit
ad5d5acb00
20 files changed
+256
-356
No files matched your search
@@ -121,8 +121,8 @@ class DashboardControllerTest extends WebTestCase
|
||||
|
||||
public function testABoardOnlyShowsItsOwnKindOfResource(): void
|
||||
{
|
||||
$this->resource('D1', svgElementId: 'desk-01');
|
||||
$this->resource('P1', ResourceType::PARKING, 'parking-01');
|
||||
$this->resource('D1');
|
||||
$this->resource('P1', ResourceType::PARKING);
|
||||
|
||||
$this->client->loginUser($this->user());
|
||||
|
||||
@@ -163,9 +163,9 @@ class DashboardControllerTest extends WebTestCase
|
||||
return $user;
|
||||
}
|
||||
|
||||
private function resource(string $label, ResourceType $type = ResourceType::DESK, ?string $svgElementId = null): Resource
|
||||
private function resource(string $label, ResourceType $type = ResourceType::DESK): Resource
|
||||
{
|
||||
$resource = new Resource($type, $label, $svgElementId);
|
||||
$resource = new Resource($type, $label);
|
||||
$this->em->persist($resource);
|
||||
$this->em->flush();
|
||||
|
||||
|
||||
Reference in new issue
Block a user