We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28998fd commit 54a8c81Copy full SHA for 54a8c81
src/Codeception/Module/Symfony.php
@@ -1099,9 +1099,9 @@ public function seeCurrentActionIs(string $action)
1099
$controller = $route->getDefault('_controller');
1100
if (substr_compare($controller, $action, -strlen($action)) === 0) {
1101
$request = $this->client->getRequest();
1102
- $currentAction = basename($request->attributes->get('_controller'));
+ $currentActionFqcn = $request->attributes->get('_controller');
1103
1104
- $this->assertEquals($currentAction, $action, "Current action is '$currentAction'.");
+ $this->assertStringEndsWith($action, $currentActionFqcn, "Current action is '$currentActionFqcn'.");
1105
return;
1106
}
1107
0 commit comments