Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / spec / Drupal / DrupalExtension / Context / DrushContextSpec.php
diff --git a/vendor/drupal/drupal-extension/spec/Drupal/DrupalExtension/Context/DrushContextSpec.php b/vendor/drupal/drupal-extension/spec/Drupal/DrupalExtension/Context/DrushContextSpec.php
new file mode 100644 (file)
index 0000000..88c9b96
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace spec\Drupal\DrupalExtension\Context;
+
+use PhpSpec\ObjectBehavior;
+use Prophecy\Argument;
+
+use Drupal\DrupalDriverManager;
+
+class DrushContextSpec extends ObjectBehavior
+{
+    function it_should_be_drupal_aware()
+    {
+        $this->shouldHaveType('Drupal\DrupalExtension\Context\RawDrupalContext');
+    }
+
+    function it_will_catch_scenarios_without_any_output()
+    {
+        $this->shouldThrow('\RuntimeException')->duringReadDrushOutput();
+    }
+
+    function it_is_a_translatable_context()
+    {
+        $this->shouldHaveType('Behat\Behat\Context\TranslatableContext');
+    }
+}