/** * @test * @testdox Can construct with identity and access it externally */ public function contextCanBeConstructWithIdentity() { $context = new RegionContext('some-id', 'default', 'default'); $this->assertEquals('some-id', $context->getIdentity()); $this->assertEquals('default', $context->getRendererIdentity()); $this->assertEquals('default', $context->getLoaderIdentity()); }
/** * @param RegionContext $context */ protected function loadRegionContext(RegionContext $context) { $loader = $this->getLoader($context->getLoaderIdentity()); $loader->single($context); }