Skip to content

Commit 54a8c81

Browse files
authored
fix seeCurrentActionIs (#60)
1 parent 28998fd commit 54a8c81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,9 @@ public function seeCurrentActionIs(string $action)
10991099
$controller = $route->getDefault('_controller');
11001100
if (substr_compare($controller, $action, -strlen($action)) === 0) {
11011101
$request = $this->client->getRequest();
1102-
$currentAction = basename($request->attributes->get('_controller'));
1102+
$currentActionFqcn = $request->attributes->get('_controller');
11031103

1104-
$this->assertEquals($currentAction, $action, "Current action is '$currentAction'.");
1104+
$this->assertStringEndsWith($action, $currentActionFqcn, "Current action is '$currentActionFqcn'.");
11051105
return;
11061106
}
11071107
}

0 commit comments

Comments
 (0)