Skip to content

Commit a6db96d

Browse files
committed
minor #15624 consistently use str_replace to unify directory separators (2.7) (Tobion)
This PR was merged into the 2.7 branch. Discussion ---------- consistently use str_replace to unify directory separators (2.7) | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | - Remaining ones from #15614 Commits ------- 17ce649 consistently use str_replace to unify directory separators (remaining)
2 parents 819747e + 02398af commit a6db96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Functional/SetAclCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function testSetAclRole()
106106
$setAclCommandTester = new CommandTester($setAclCommand);
107107
$setAclCommandTester->execute(array(
108108
'command' => 'acl:set',
109-
'arguments' => array($grantedPermission, sprintf('%s:%s', strtr(self::OBJECT_CLASS, '\\', '/'), $objectId)),
109+
'arguments' => array($grantedPermission, sprintf('%s:%s', str_replace('\\', '/', self::OBJECT_CLASS), $objectId)),
110110
'--role' => array($role),
111111
));
112112

0 commit comments

Comments
 (0)