X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FEntityCreateAccessCheckTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FEntity%2FEntityCreateAccessCheckTest.php;h=59f83af029dec25dae3a53884f3c2644c8a5bcc7;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=2c3d132cf3c0fd459717498f3ae7e0317ada080b;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/tests/Drupal/Tests/Core/Entity/EntityCreateAccessCheckTest.php b/web/core/tests/Drupal/Tests/Core/Entity/EntityCreateAccessCheckTest.php index 2c3d132cf..59f83af02 100644 --- a/web/core/tests/Drupal/Tests/Core/Entity/EntityCreateAccessCheckTest.php +++ b/web/core/tests/Drupal/Tests/Core/Entity/EntityCreateAccessCheckTest.php @@ -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');