Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Entity / EntityCreateAccessCheckTest.php
index 2c3d132cf3c0fd459717498f3ae7e0317ada080b..59f83af029dec25dae3a53884f3c2644c8a5bcc7 100644 (file)
@@ -74,6 +74,9 @@ class EntityCreateAccessCheckTest extends UnitTestCase {
     if ($expect_permission_context) {
       $expected_access_result->cachePerPermissions();
     }
+    if (!$entity_bundle && !$expect_permission_context) {
+      $expected_access_result->setReason("Could not find '{bundle_argument}' request argument, therefore cannot check create access.");
+    }
 
     $entity_manager = $this->getMock('Drupal\Core\Entity\EntityManagerInterface');