Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertTableRow requires a specifiq array order #17

Open
jfradj opened this issue Apr 27, 2024 · 1 comment
Open

assertTableRow requires a specifiq array order #17

jfradj opened this issue Apr 27, 2024 · 1 comment

Comments

@jfradj
Copy link

jfradj commented Apr 27, 2024

In trait DatabaseTableTestTrait function protected function assertTableRow()
Instead of $this->assertSame I would use $this->assertEqualsCanonicalizing
So the array order doesn't matter, preventing this kind of error:

Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
 Array &0 [
+    'first_purchase_time' => '2024-04-27 22:22:41',
     'last_purchase_time' => '2024-04-27 22:22:41',
-    'first_purchase_time' => '2024-04-27 22:22:41',
 ]
@odan
Copy link
Member

odan commented Apr 28, 2024

Can you please create a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants