コード例 #1
0
 protected function startFrontendProviderEmulation()
 {
     if ($this->chainMetadataProvider) {
         $this->chainMetadataProvider->startProviderEmulation(FrontendOwnershipMetadataProvider::ALIAS);
     }
 }
コード例 #2
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage Provider with "alias" alias not registered
  */
 public function testEmulationNotSupported()
 {
     $chain = new ChainMetadataProvider();
     $chain->startProviderEmulation('alias');
 }