Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / spec / Drupal / DrupalDriverManagerSpec.php
1 <?php
2
3 namespace spec\Drupal;
4
5 use Behat\Testwork\Environment\Environment;
6
7 use Drupal\Driver\DriverInterface;
8
9 use PhpSpec\ObjectBehavior;
10 use Prophecy\Argument;
11
12 class DrupalDriverManagerSpec extends ObjectBehavior
13 {
14     function it_is_initializable()
15     {
16         $this->shouldHaveType('Drupal\DrupalDriverManager');
17     }
18
19     function it_registers_drivers(DriverInterface $driver)
20     {
21         $this->registerDriver('name', $driver);
22         $this->setDefaultDriverName('name');
23
24         $driver = $this->getDriver();
25         $driver->shouldBeAnInstanceOf('Drupal\Driver\DriverInterface');
26     }
27
28     function it_sets_behat_environments(Environment $environment)
29     {
30         $this->setEnvironment($environment);
31
32         $env = $this->getEnvironment();
33         $env->shouldBeAnInstanceOf('Behat\Testwork\Environment\Environment');
34     }
35
36 }