/** * @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); }
public function getByTitle($title) { return $this->storage->getByTitle($title); }