Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Access / AccessResultTest.php
index bbf97b14de1ceb8ca615353ac812596c06138d0f..60a17a0fb68b7564a15a85f107a9173c5b275681 100644 (file)
@@ -128,6 +128,9 @@ class AccessResultTest extends UnitTestCase {
     $reason = $this->getRandomGenerator()->string();
     $b = AccessResult::forbidden($reason);
     $verify($b, $reason);
+
+    $b = AccessResult::forbiddenIf(TRUE, $reason);
+    $verify($b, $reason);
   }
 
   /**