Skip to content

Commit

Permalink
FormMonitorPanel: render unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Oct 28, 2023
1 parent 7e793df commit 6ee5aba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
8 changes: 0 additions & 8 deletions src/FormMonitor/Tracy/FormMonitorPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ public function getTab(): string
$errors = $this->getErrors();
// phpcs:enable

if ($errors === []) {
return;
}

require __DIR__ . '/FormMonitor.tab.phtml';
});
}
Expand All @@ -44,10 +40,6 @@ public function getPanel(): string
$errors = $this->getErrors();
// phpcs:enable

if ($errors === []) {
return;
}

require __DIR__ . '/FormMonitor.panel.phtml';
});
}
Expand Down
20 changes: 0 additions & 20 deletions tests/Unit/FormMonitor/Tracy/FormMonitorPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,6 @@
final class FormMonitorPanelTest extends TestCase
{

public function testNoRender(): void
{
$form = new Form();

$stack = new FormStack();
$stack->add($form);

$panel = new FormMonitorPanel($stack);

self::assertSame(
'',
$panel->getPanel(),
);

self::assertSame(
'',
$panel->getTab(),
);
}

public function testRender(): void
{
$form = new Form();
Expand Down

0 comments on commit 6ee5aba

Please sign in to comment.