Mercurial > hg > isophonics-drupal-site
diff core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php Thu Feb 28 13:21:36 2019 +0000 @@ -175,13 +175,14 @@ foreach ($expected as $key => $value) { $this->assertArrayHasKey($key, $actual); + $msg = sprintf("Value at 'array[%s][%s]' is not correct.", $i - 1, $key); if (is_array($value)) { ksort($value); ksort($actual[$key]); - $this->assertEquals($value, $actual[$key]); + $this->assertEquals($value, $actual[$key], $msg); } else { - $this->assertSame((string) $value, (string) $actual[$key]); + $this->assertEquals((string) $value, (string) $actual[$key], $msg); } } }