We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c55609 commit 7797ce2Copy full SHA for 7797ce2
tests/Config/ConfigTest.php
@@ -90,6 +90,17 @@ public function testNotSkipRouteWithFileExtension()
90
$this->assertNotEquals($this->html, $response->getContent());
91
}
92
93
+ public function testWontReadEnableConfigMoreThanOnce()
94
+ {
95
+ $pageSpeed = m::mock(TrimUrls::class)
96
+ ->shouldAllowMockingProtectedMethods()
97
+ ->makePartial();
98
+
99
+ config(['laravel-page-speed.enable' => false]);
100
101
+ $this->assertTrue($pageSpeed->isEnable());
102
+ }
103
104
protected function mockMiddlewareWithEnableNull()
105
{
106
$mock = m::mock(TrimUrls::class)
0 commit comments