/** * @test */ public function testGetLayoutName() { $context = new RenderingContext(); $context->getVariableProvider()->add('layoutName', 'test'); $result = $this->parsingState->getLayoutName($context); $this->assertEquals('test', $result); }
/** * @param array $variables * @return RenderingContext */ protected function getDummyRenderingContextWithVariables(array $variables) { $context = new RenderingContext(); $context->getVariableProvider()->setSource($variables); return $context; }