diff --git a/core/modules/system/src/Tests/System/HtaccessTest.php b/core/modules/system/src/Tests/System/HtaccessTest.php index fe21b9c..2b55390 100644 --- a/core/modules/system/src/Tests/System/HtaccessTest.php +++ b/core/modules/system/src/Tests/System/HtaccessTest.php @@ -108,7 +108,7 @@ public function testFileAccess() { $node = $this->drupalCreateNode([ 'title' => 'This is a node', 'type' => $type->id(), - 'path' => 'test.php' + 'path' => '/test.php' ]); $node->save(); $this->drupalGet('test.php'); @@ -116,7 +116,7 @@ public function testFileAccess() { $this->assertText('This is a node'); // Update node's alias to test.php/test. - $node->path = 'test.php/test'; + $node->path = '/test.php/test'; $node->save(); $this->drupalGet('test.php/test'); $this->assertResponse(200);