Skip to content

Commit

Permalink
[fix] fix test to new output of module:make command
Browse files Browse the repository at this point in the history
  • Loading branch information
alissn committed Jul 30, 2022
1 parent b301f8f commit 70dc1dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/Commands/ModuleMakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,11 @@ public function it_outputs_error_when_module_exists()
$this->artisan('module:make', ['name' => ['Blog']]);
$code = $this->artisan('module:make', ['name' => ['Blog']]);

$expected = 'Module [Blog] already exist!
';
$this->assertEquals($expected, Artisan::output());
$output = Artisan::output();
$expected = 'ERROR Module [Blog] already exists!';

$this->assertTrue(Str::contains($output, $expected));

$this->assertSame(E_ERROR, $code);
}

Expand Down

0 comments on commit 70dc1dd

Please sign in to comment.