protected function setUp()
 {
     $this->context = new LayoutContext();
     $layoutFactoryBuilder = Layouts::createLayoutFactoryBuilder();
     $this->initializeLayoutFactoryBuilder($layoutFactoryBuilder);
     foreach ($this->getExtensions() as $extension) {
         $layoutFactoryBuilder->addExtension($extension);
     }
     $this->layoutFactory = $layoutFactoryBuilder->getLayoutFactory();
 }
Example #2
0
 public function testCoreExtensionIsAdded()
 {
     $this->assertInstanceOf('Oro\\Component\\Layout\\Block\\Type\\BaseType', Layouts::createLayoutFactory()->getType(BaseType::NAME));
 }