3 namespace spec\Drupal\DrupalExtension\Hook\Scope;
5 use Behat\Behat\Context\Context;
6 use Behat\Testwork\Environment\Environment;
8 use PhpSpec\ObjectBehavior;
11 class BeforeNodeCreateScopeSpec extends ObjectBehavior
13 function let(Environment $environment, Context $context)
15 $node = new \stdClass();
16 $this->beConstructedWith($environment, $context, $node);
19 function it_is_initializable()
21 $this->shouldHaveType('Drupal\DrupalExtension\Hook\Scope\BeforeNodeCreateScope');
24 function it_should_return_context()
26 $context = $this->getContext();
27 $context->shouldBeAnInstanceOf('Behat\Behat\Context\Context');
30 function it_should_return_a_node()
32 $this->getEntity()->shouldBeAnInstanceOf('stdClass');