Skip to content
Snippets Groups Projects

Issue #3303185: Add unit test coverage of PathLocator::getWebRoot()

Merged Adam G-H requested to merge issue/automatic_updates-3303185:3303185-add-unit-test into 8.x-2.x
Files
2
@@ -110,7 +110,7 @@ class PathLocator {
* project root and Drupal root are the same.
*/
public function getWebRoot(): string {
$web_root = str_replace($this->getProjectRoot(), '', $this->appRoot);
$web_root = str_replace(trim($this->getProjectRoot(), DIRECTORY_SEPARATOR), '', trim($this->appRoot, DIRECTORY_SEPARATOR));
return trim($web_root, DIRECTORY_SEPARATOR);
}
Loading