Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit abbb03e

Browse files
committed
when you have /root/path/ and /root/path/sub it should return /root/path/sub
Signed-off-by: BlackEagle <[email protected]>
1 parent 6cd28e8 commit abbb03e

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Filesystem/Test/Unit/Driver

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Filesystem/Test/Unit/Driver/FileTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ public function testGetAbsolutePath($basePath, $path, $expected)
3030
$file = new File();
3131
$this->assertEquals($expected, $file->getAbsolutePath($basePath, $path));
3232
}
33-
33+
3434
public function dataProviderForTestGetAbsolutePath()
3535
{
3636
return [
3737
['/root/path/', 'sub', '/root/path/sub'],
3838
['/root/path/', '/sub', '/root/path/sub'],
3939
['/root/path/', '../sub', '/root/path/../sub'],
40-
['/root/path/', '/root/path/sub', '/root/path/root/path/sub'],
40+
['/root/path/', '/root/path/sub', '/root/path/sub'],
4141
];
4242
}
4343

0 commit comments

Comments
 (0)