Inheritance: extends Symfony\Component\DependencyInjection\ContainerAware, implements Symfony\Component\EventDispatcher\EventSubscriberInterface
 public function testOnConfigScopeChange()
 {
     $siteAccess = new SiteAccess('test');
     $event = new ScopeChangeEvent($siteAccess);
     $this->configResolver->expects($this->once())->method('setDefaultScope')->with($siteAccess->name);
     $this->viewManager->expects($this->once())->method('setSiteAccess')->with($siteAccess);
     $listener = new ConfigScopeListener($this->configResolver, $this->viewManager);
     $listener->onConfigScopeChange($event);
     $this->assertSame($siteAccess, $event->getSiteAccess());
 }
 public function testOnConfigScopeChange()
 {
     $siteAccess = new SiteAccess('test');
     $event = new ScopeChangeEvent($siteAccess);
     $resettableServices = array('foo', 'bar.baz');
     $dynamicSettingsServiceIds = array('something', 'something_else');
     $this->configResolver->expects($this->once())->method('setDefaultScope')->with($siteAccess->name);
     $this->viewManager->expects($this->once())->method('setSiteAccess')->with($siteAccess);
     $this->container->expects($this->at(0))->method('set')->with('foo', null);
     $this->container->expects($this->at(1))->method('set')->with('bar.baz', null);
     $fakeService1 = new \stdClass();
     $this->container->expects($this->at(2))->method('set')->with('something', null);
     $this->container->expects($this->at(3))->method('get')->with('something')->will($this->returnValue($fakeService1));
     $this->container->expects($this->at(4))->method('set')->with('something', $fakeService1);
     $fakeService2 = new \stdClass();
     $this->container->expects($this->at(5))->method('set')->with('something_else', null);
     $this->container->expects($this->at(6))->method('get')->with('something_else')->will($this->returnValue($fakeService2));
     $this->container->expects($this->at(7))->method('set')->with('something_else', $fakeService2);
     $listener = new ConfigScopeListener($this->configResolver, $this->viewManager, $resettableServices, $dynamicSettingsServiceIds);
     $listener->setContainer($this->container);
     $listener->onConfigScopeChange($event);
     $this->assertSame($siteAccess, $event->getSiteAccess());
 }