Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
refs: #49
  • Loading branch information
pirs1337 committed Nov 28, 2024
1 parent 0718d41 commit 5188958
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/ControllerGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function setUp(): void
public function testControllerAlreadyExists()
{
$this->mockClass(ControllerGenerator::class, [
$this->classExistsMethodCall(['controllers', 'PostController'])
$this->classExistsMethodCall(['controllers', 'PostController']),
]);

$this->assertExceptionThrew(
Expand All @@ -41,7 +41,7 @@ public function testModelServiceNotExists()
{
$this->mockClass(ControllerGenerator::class, [
$this->classExistsMethodCall(['controllers', 'PostController'], false),
$this->classExistsMethodCall(['services', 'PostService'], false)
$this->classExistsMethodCall(['services', 'PostService'], false),
]);

$this->assertExceptionThrew(
Expand Down
2 changes: 1 addition & 1 deletion tests/FactoryGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testModelNotExists()
$this->assertExceptionThrew(
className: ClassNotExistsException::class,
message: "Cannot create PostFactory cause Post Model does not exists. "
. "Create a Post Model by itself or run command 'php artisan make:entity Post --only-model'."
. "Create a Post Model by itself or run command 'php artisan make:entity Post --only-model'.",
);

app(FactoryGenerator::class)
Expand Down

0 comments on commit 5188958

Please sign in to comment.