public function testShouldPassDependenciesToUpdateInstance() { $themeName = 'oro-gold'; $update = $this->getMock('Oro\\Component\\Layout\\LayoutUpdateInterface'); $this->setUpResourcePathProvider($themeName); $callbackBuilder = $this->getCallbackBuilder(); $this->yamlDriver->expects($this->any())->method('supports')->willReturnCallback($callbackBuilder('yml')); $this->yamlDriver->expects($this->once())->method('load')->willReturn($update); $this->dependencyInitializer->expects($this->once())->method('initialize')->with($this->identicalTo($update)); $this->extension->getLayoutUpdates($this->getLayoutItem('root', $themeName)); }