You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',
]
The text was updated successfully, but these errors were encountered:
In trait
DatabaseTableTestTrait
functionprotected function assertTableRow()
Instead of
$this->assertSame
I would use$this->assertEqualsCanonicalizing
So the array order doesn't matter, preventing this kind of error:
The text was updated successfully, but these errors were encountered: