public function add(BlockType $blocktype) { $this->storage->add($blocktype); }
/** * @param gries\MControl\Storage\BlockType\BlockTypeStorageInterface $storage * @param gries\MControl\Builder\BlockType BlockType */ function it_should_add_a_blocktype_to_the_storage(BlockTypeStorageInterface $storage, BlockType $blocktype) { $storage->add($blocktype)->shouldBeCalled(); $this->beConstructedWith($storage); $this->add($blocktype); }