8000 minor #17071 [Filesystem] fix tests on 2.3 (Christian Flothmann) · symfony/symfony@36a5141 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36a5141

Browse files
committed
minor #17071 [Filesystem] fix tests on 2.3 (Christian Flothmann)
This PR was merged into the 2.3 branch. Discussion ---------- [Filesystem] fix tests on 2.3 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16797 | License | MIT | Doc PR | The test introduced in #16797 used the `assertFilePermissions()` method to test for the expected result. This worked quite well for the PR as it was submitted for the `master` branch. However, the tests now fail on 2.3 as the `FilesystemTestCase` class which contains this method was introduced with Symfony 2.4. Commits ------- 9050f67 [Filesystem] fix tests on 2.3
2 parents 0c2f1d9 + 9050f67 commit 36a5141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public function testChmodChangesZeroModeOnSubdirectoriesOnRecursive()
492492

493493
$this->filesystem->chmod($directory, 0753, 0000, true);
494494

495-
$this->assertFilePermissions(753, $subdirectory);
495+
$this->assertEquals(753, $this->getFilePermissions($subdirectory));
496496
}
497497

498498
public function testChown()

0 commit comments

Comments
 (0)
0