1
0
Fork 0
mirror of synced 2024-06-17 10:14:50 +12:00

tests: add more variety to migration tests

This commit is contained in:
Torsten Dittmann 2022-05-19 14:21:21 +02:00
parent 33486ee2eb
commit 3199baa14f

View file

@ -72,6 +72,30 @@ abstract class MigrationTest extends TestCase
'd' => ['a', 'b', 'c']
]
]));
$this->assertFalse(Migration::hasDifference([
'bool' => true,
'string' => 'abc',
'int' => 123,
'array' => ['a', 'b', 'c'],
'assoc' => [
'a' => true,
'b' => 'abc',
'c' => 123,
'd' => ['a', 'b', 'c']
]
], [
'string' => 'abc',
'assoc' => [
'a' => true,
'b' => 'abc',
'c' => 123,
'd' => ['a', 'b', 'c']
],
'int' => 123,
'array' => ['a', 'b', 'c'],
'bool' => true,
]));
$this->assertTrue(Migration::hasDifference([
'a' => true
], [