Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / spec / Drupal / DrupalExtension / Hook / Scope / BeforeNodeCreateScopeSpec.php
1 <?php
2
3 namespace spec\Drupal\DrupalExtension\Hook\Scope;
4
5 use Behat\Behat\Context\Context;
6 use Behat\Testwork\Environment\Environment;
7
8 use PhpSpec\ObjectBehavior;
9 use Prophecy\Argument;
10
11 class BeforeNodeCreateScopeSpec extends ObjectBehavior
12 {
13     function let(Environment $environment, Context $context)
14     {
15         $node = new \stdClass();
16         $this->beConstructedWith($environment, $context, $node);
17     }
18
19     function it_is_initializable()
20     {
21         $this->shouldHaveType('Drupal\DrupalExtension\Hook\Scope\BeforeNodeCreateScope');
22     }
23
24     function it_should_return_context()
25     {
26         $context = $this->getContext();
27         $context->shouldBeAnInstanceOf('Behat\Behat\Context\Context');
28     }
29
30     function it_should_return_a_node()
31     {
32         $this->getEntity()->shouldBeAnInstanceOf('stdClass');
33     }
34 }