diff --git a/Tests/Command/TranslationUpdateCommandTest.php b/Tests/Command/TranslationUpdateCommandTest.php index 83f891080..f883fac0c 100644 --- a/Tests/Command/TranslationUpdateCommandTest.php +++ b/Tests/Command/TranslationUpdateCommandTest.php @@ -149,11 +149,6 @@ public function testFilterDuplicateTransPaths() $this->translationDir.'/a/different/test/folder', ]; - $expectedPaths = [ - $this->translationDir.'/a/different/test/folder', - $this->translationDir.'/a/test/folder', - ]; - foreach ($transPaths as $transPath) { if (realpath($transPath)) { continue; @@ -177,6 +172,11 @@ public function testFilterDuplicateTransPaths() $filteredTransPaths = $method->invoke($command, $transPaths); + $expectedPaths = [ + realpath($this->translationDir.'/a/different/test/folder'), + realpath($this->translationDir.'/a/test/folder'), + ]; + $this->assertEquals($expectedPaths, $filteredTransPaths); }