Skip to content

Commit

Permalink
[FrameworkBundle] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Sep 28, 2022
1 parent b41f68c commit 13a30ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/Command/TranslationUpdateCommandTest.php
Expand Up @@ -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;
Expand All @@ -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);
}

Expand Down

0 comments on commit 13a30ef

Please sign in to comment.