Skip to content

Commit b7072c1

Browse files
committed
test: fix test
1 parent 9cb1047 commit b7072c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/Debug/ToolbarTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function tearDown(): void
6363
public function testPrepareRespectsDisableOnHeaders(): void
6464
{
6565
// Set up the new configuration property
66-
$this->config->disableOnHeaders = ['HX-Request'];
66+
$this->config->disableOnHeaders = ['HX-Request' => 'true'];
6767
Factories::injectMock('config', 'Toolbar', $this->config);
6868

6969
// Initialize Request with the custom header
@@ -85,7 +85,7 @@ public function testPrepareRespectsDisableOnHeaders(): void
8585

8686
public function testPrepareInjectsNormallyWithoutIgnoredHeader(): void
8787
{
88-
$this->config->disableOnHeaders = ['HX-Request'];
88+
$this->config->disableOnHeaders = ['HX-Request' => 'true'];
8989
Factories::injectMock('config', 'Toolbar', $this->config);
9090

9191
$this->request = service('incomingrequest', null, false);

0 commit comments

Comments
 (0)