/** * @test */ public function testGetLayoutName() { $context = new RenderingContext(); $context->getVariableProvider()->add('layoutName', 'test'); $result = $this->parsingState->getLayoutName($context); $this->assertEquals('test', $result); }
/** * @test */ public function testGetLayoutName() { $this->parsingState->setVariableProvider(new StandardVariableProvider(array('layoutName' => 'test'))); $result = $this->parsingState->getLayoutName(new RenderingContextFixture()); $this->assertEquals('test', $result); }