From 3199baa14fac55d0ed1a5b14c4929a862bc03224 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 19 May 2022 14:21:21 +0200 Subject: [PATCH] tests: add more variety to migration tests --- tests/unit/Migration/MigrationTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/unit/Migration/MigrationTest.php b/tests/unit/Migration/MigrationTest.php index 49aee87f5..0c8c34cbc 100644 --- a/tests/unit/Migration/MigrationTest.php +++ b/tests/unit/Migration/MigrationTest.php @@ -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 ], [