Skip to content

Commit

Permalink
Fix ListAliasesTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jhatlak committed Oct 16, 2024
1 parent 3b65e72 commit 709482b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Phinx/Console/Command/ListAliasesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 709482b

Please sign in to comment.