From 13a30ef90151b2a3f1538a30ec44eb49dcaa19c6 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 28 Sep 2022 18:17:29 +0200 Subject: [PATCH] [FrameworkBundle] Fix tests --- Tests/Command/TranslationUpdateCommandTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }