tests: add more variety to migration tests
This commit is contained in:
parent
33486ee2eb
commit
3199baa14f
|
@ -72,6 +72,30 @@ abstract class MigrationTest extends TestCase
|
||||||
'd' => ['a', 'b', 'c']
|
'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([
|
$this->assertTrue(Migration::hasDifference([
|
||||||
'a' => true
|
'a' => true
|
||||||
], [
|
], [
|
||||||
|
|
Loading…
Reference in a new issue