Skip to content

Backwards compatibility break in RouterAssertionsTrait::seeCurrentRouteIs() #245

Description

@cs278

#227 broke backwards compatibility with tests written for prior versions of the module.

The following test now fails:

$I->seeCurrentRouteIs('some_route', [
    'id' => 1,
]);

With:

- Expected | + Actual
@@ @@
Array &0 [
'_route' => 'some_route',
-    'id' => 1,
+    'id' => '1',
]

This usage is even how the method is documented:

* $I->seeCurrentRouteIs('posts.show', ['id' => 8]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions