Skip to content

Commit ea020d8

Browse files
committed
fix: conflicts
refs: #116
1 parent 111546d commit ea020d8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/ControllerGeneratorTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public function testRoutesStubNotExist()
109109
$this->assertGeneratedFileEquals('empty_api.php', 'routes/api.php');
110110

111111
$this->assertEventPushedChain([
112-
WarningEvent::class => 'Generation of routes has been skipped cause the view incorrect_stub from the config entity-generator.stubs.routes is not exists. Please check that config has the correct view name value.',
113-
SuccessCreateMessage::class => 'Created a new Controller: PostController',
112+
WarningEvent::class => ['Generation of routes has been skipped cause the view incorrect_stub from the config entity-generator.stubs.routes is not exists. Please check that config has the correct view name value.'],
113+
SuccessCreateMessage::class => ['Created a new Controller: PostController'],
114114
]);
115115
}
116116

@@ -129,8 +129,8 @@ public function testUseRoutesStubNotExist()
129129
$this->assertGeneratedFileEquals('empty_api.php', 'routes/api.php');
130130

131131
$this->assertEventPushedChain([
132-
WarningEvent::class => 'Generation of use routes has been skipped cause the view incorrect_stub from the config entity-generator.stubs.use_routes is not exists. Please check that config has the correct view name value.',
133-
SuccessCreateMessage::class => 'Created a new Controller: PostController',
132+
WarningEvent::class => ['Generation of use routes has been skipped cause the view incorrect_stub from the config entity-generator.stubs.use_routes is not exists. Please check that config has the correct view name value.'],
133+
SuccessCreateMessage::class => ['Created a new Controller: PostController'],
134134
]);
135135
}
136136

@@ -148,12 +148,12 @@ public function testSuccess()
148148

149149
$this->assertEventPushedChain([
150150
SuccessCreateMessage::class => [
151-
"Created a new Route: Route::post('posts', [PostController::class, 'create']);",
152-
"Created a new Route: Route::put('posts/{id}', [PostController::class, 'update']);",
153-
"Created a new Route: Route::delete('posts/{id}', [PostController::class, 'delete']);",
154-
"Created a new Route: Route::get('posts/{id}', [PostController::class, 'get']);",
155-
"Created a new Route: Route::get('posts', [PostController::class, 'search']);",
156-
"Created a new Controller: PostController",
151+
"Created a new Route: Route::post('posts', 'create');",
152+
"Created a new Route: Route::put('posts/{id}', 'update');",
153+
"Created a new Route: Route::delete('posts/{id}', 'delete');",
154+
"Created a new Route: Route::get('posts/{id}', 'get');",
155+
"Created a new Route: Route::get('posts', 'search');",
156+
'Created a new Controller: PostController',
157157
],
158158
]);
159159
}

0 commit comments

Comments
 (0)