public function testBlockFromBlockManager()
 {
     $blockManager = new BlockManager();
     $class = MyBlock::class;
     $blockManager->setInvokableClass(MyBlock::class, $class);
     $blockFactory = new BlockFactory([], $blockManager, new ServiceManager());
     $block = $blockFactory->createBlock('my.block', ['class' => MyBlock::class]);
     $this->assertInstanceOf($class, $block);
 }
 public function testBlockFromBlockManager()
 {
     $blockManager = new \ConLayout\BlockManager();
     $class = 'ConLayoutTest\\Block\\Factory\\MyBlock';
     $blockManager->setInvokableClass('MyBlock', $class);
     $blockFactory = new BlockFactory([], $blockManager);
     $block = $blockFactory->createBlock('my.block', ['class' => 'MyBlock']);
     $this->assertInstanceOf($class, $block);
 }