X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FDrupalKernel%2FDrupalKernelTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FCore%2FDrupalKernel%2FDrupalKernelTest.php;h=b5cb96b8cc4754a577cdbed51a8c909abc16cb14;hp=7370491816b526659a088f68d3325921cb4fbf8e;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php b/web/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php index 737049181..b5cb96b8c 100644 --- a/web/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php +++ b/web/core/tests/Drupal/KernelTests/Core/DrupalKernel/DrupalKernelTest.php @@ -137,7 +137,7 @@ class DrupalKernelTest extends KernelTestBase { // Check that the container itself is not among the persist IDs because it // does not make sense to persist the container itself. $persist_ids = $container->getParameter('persist_ids'); - $this->assertIdentical(FALSE, array_search('service_container', $persist_ids)); + $this->assertSame(FALSE, array_search('service_container', $persist_ids)); } /** @@ -184,6 +184,11 @@ class DrupalKernelTest extends KernelTestBase { $pass = TRUE; } $this->assertTrue($pass, 'Throws LogicException if DrupalKernel::setSitePath() is called after boot'); + + // Ensure no LogicException if DrupalKernel::setSitePath() is called with + // identical path after boot. + $path = $kernel->getSitePath(); + $kernel->setSitePath($path); } }