From 709482b7e59b5d9e82a0bde9906044ee997dfdc0 Mon Sep 17 00:00:00 2001 From: Jens Hatlak Date: Wed, 16 Oct 2024 08:30:55 +0200 Subject: [PATCH] Fix ListAliasesTest --- tests/Phinx/Console/Command/ListAliasesTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Phinx/Console/Command/ListAliasesTest.php b/tests/Phinx/Console/Command/ListAliasesTest.php index 0504da136..af1d9ca32 100644 --- a/tests/Phinx/Console/Command/ListAliasesTest.php +++ b/tests/Phinx/Console/Command/ListAliasesTest.php @@ -38,7 +38,8 @@ public function testListingAliases($file, $hasAliases) ], ['decorated' => false] ); - $this->assertEquals(AbstractCommand::CODE_SUCCESS, $exitCode); + $expectedExitCode = $hasAliases ? AbstractCommand::CODE_SUCCESS : AbstractCommand::CODE_ERROR; + $this->assertSame($expectedExitCode, $exitCode); $display = $commandTester->getDisplay(false);