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',
]
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: