File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/Integration/Routing Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ class RoutingTestCase extends MockeryTestCase
1414 use SupportsScopedFixtures;
1515
1616 private $ originalFunctionsContent ;
17+
1718 private $ functionsFile = '/roots/app/public/content/themes/sage/functions.php ' ;
19+
1820 private $ routesFile = '/roots/app/public/content/themes/sage/routes/web.php ' ;
1921
2022 protected function setUp (): void
@@ -42,10 +44,10 @@ protected function setUp(): void
4244 // Backup original functions.php and add routing
4345 $ this ->originalFunctionsContent = file_get_contents ($ this ->functionsFile );
4446
45- if (!str_contains ($ this ->originalFunctionsContent , 'withRouting ' )) {
47+ if (! str_contains ($ this ->originalFunctionsContent , 'withRouting ' )) {
4648 $ newContent = str_replace (
4749 '->boot(); ' ,
48- '->withRouting(web: __DIR__ . \'/routes/web.php \') ' . "\n ->boot(); " ,
50+ '->withRouting(web: __DIR__ . \'/routes/web.php \') ' . "\n ->boot(); " ,
4951 $ this ->originalFunctionsContent
5052 );
5153 file_put_contents ($ this ->functionsFile , $ newContent );
You can’t perform that action at this time.
0 commit comments