예제 #1
0
 public function add(BlockType $blocktype)
 {
     $this->storage->add($blocktype);
 }
예제 #2
0
 /**
  * @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);
 }