Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-driver / spec / Drupal / Driver / BlackboxDriverSpec.php
1 <?php
2
3 namespace spec\Drupal\Driver;
4
5 use PhpSpec\ObjectBehavior;
6 use Prophecy\Argument;
7
8 class BlackboxDriverSpec extends ObjectBehavior
9 {
10     function it_is_initializable()
11     {
12         $this->shouldHaveType('Drupal\Driver\BlackboxDriver');
13     }
14
15     function it_is_always_bootstrapped()
16     {
17         $this->isBootStrapped()->shouldReturn(TRUE);
18     }
19
20     function it_should_not_allow_api_methods()
21     {
22         $user = $node = $term = new \stdClass();
23         $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringUserCreate($user);
24         $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringCreateNode($node);
25         $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringCreateTerm($term);
26     }
27
28     function it_should_not_have_a_random_generator()
29     {
30         $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringGetRandom();
31     }
32 }