3 namespace spec\Drupal\Driver;
5 use PhpSpec\ObjectBehavior;
8 class BlackboxDriverSpec extends ObjectBehavior
10 function it_is_initializable()
12 $this->shouldHaveType('Drupal\Driver\BlackboxDriver');
15 function it_is_always_bootstrapped()
17 $this->isBootStrapped()->shouldReturn(TRUE);
20 function it_should_not_allow_api_methods()
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);
28 function it_should_not_have_a_random_generator()
30 $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringGetRandom();