public function testOutside()
 {
     $this->routeMock->expects($this->exactly(2))->method('getId')->will($this->returnValue('/outside'));
     $this->routeMock->expects($this->never())->method('setPrefix');
     $args = new LifecycleEventArgs($this->routeMock, $this->dmMock);
     $this->listener->postLoad($args);
 }
 /**
  * URL without locale, set available translations.
  */
 public function testAvailableTranslations()
 {
     $this->routeMock->expects($this->once())->method('getId')->will($this->returnValue('/cms/simple/something'));
     $this->dmMock->expects($this->once())->method('isDocumentTranslatable')->with($this->routeMock)->will($this->returnValue(true));
     $this->dmMock->expects($this->once())->method('getLocalesFor')->with($this->routeMock, true)->will($this->returnValue(array('en', 'de', 'fr')));
     $this->routeMock->expects($this->once())->method('setRequirement')->with('_locale', 'en|de|fr');
     $this->listener->setUpdateAvailableTranslations(true);
     $args = new LifecycleEventArgs($this->routeMock, $this->dmMock);
     $this->listener->postLoad($args);
 }