Esempio n. 1
0
 /**
  * @param gries\MControl\Storage\BlockType\BlockTypeStorageInterface $storage
  * @param gries\MControl\Builder\BlockType BlockType
  */
 function it_should_get_a_blocktype_by_its_title(BlockTypeStorageInterface $storage, BlockType $blocktype)
 {
     $name = 'Some Name';
     $storage->getByTitle($name)->shouldBeCalled()->willReturn($blocktype);
     $this->beConstructedWith($storage);
     $this->getByTitle($name)->shouldReturn($blocktype);
 }
Esempio n. 2
0
 public function getByTitle($title)
 {
     return $this->storage->getByTitle($title);
 }