X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrupal%2Fdrupal-driver%2Fspec%2FDrupal%2FDriver%2FBlackboxDriverSpec.php;fp=vendor%2Fdrupal%2Fdrupal-driver%2Fspec%2FDrupal%2FDriver%2FBlackboxDriverSpec.php;h=13b30ec52b6ce53c88848545b6af636b1342ebe4;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hp=0000000000000000000000000000000000000000;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68;p=yaffs-website diff --git a/vendor/drupal/drupal-driver/spec/Drupal/Driver/BlackboxDriverSpec.php b/vendor/drupal/drupal-driver/spec/Drupal/Driver/BlackboxDriverSpec.php new file mode 100644 index 000000000..13b30ec52 --- /dev/null +++ b/vendor/drupal/drupal-driver/spec/Drupal/Driver/BlackboxDriverSpec.php @@ -0,0 +1,32 @@ +shouldHaveType('Drupal\Driver\BlackboxDriver'); + } + + function it_is_always_bootstrapped() + { + $this->isBootStrapped()->shouldReturn(TRUE); + } + + function it_should_not_allow_api_methods() + { + $user = $node = $term = new \stdClass(); + $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringUserCreate($user); + $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringCreateNode($node); + $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringCreateTerm($term); + } + + function it_should_not_have_a_random_generator() + { + $this->shouldThrow('Drupal\Driver\Exception\UnsupportedDriverActionException')->duringGetRandom(); + } +}