Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / spec / Drupal / DrupalExtension / Hook / Scope / BeforeNodeCreateScopeSpec.php
diff --git a/vendor/drupal/drupal-extension/spec/Drupal/DrupalExtension/Hook/Scope/BeforeNodeCreateScopeSpec.php b/vendor/drupal/drupal-extension/spec/Drupal/DrupalExtension/Hook/Scope/BeforeNodeCreateScopeSpec.php
new file mode 100644 (file)
index 0000000..ae9330e
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+namespace spec\Drupal\DrupalExtension\Hook\Scope;
+
+use Behat\Behat\Context\Context;
+use Behat\Testwork\Environment\Environment;
+
+use PhpSpec\ObjectBehavior;
+use Prophecy\Argument;
+
+class BeforeNodeCreateScopeSpec extends ObjectBehavior
+{
+    function let(Environment $environment, Context $context)
+    {
+        $node = new \stdClass();
+        $this->beConstructedWith($environment, $context, $node);
+    }
+
+    function it_is_initializable()
+    {
+        $this->shouldHaveType('Drupal\DrupalExtension\Hook\Scope\BeforeNodeCreateScope');
+    }
+
+    function it_should_return_context()
+    {
+        $context = $this->getContext();
+        $context->shouldBeAnInstanceOf('Behat\Behat\Context\Context');
+    }
+
+    function it_should_return_a_node()
+    {
+        $this->getEntity()->shouldBeAnInstanceOf('stdClass');
+    }
+}