コード例 #1
0
 /**
  * verify that we get a mongodbref
  *
  * @dataProvider getExtReferenceProvider
  *
  * @param string       $url          extref url
  * @param ExtReference $extReference extref object
  *
  * @return void
  */
 public function testGetExtReference($url, ExtReference $extReference)
 {
     $this->router->expects($this->once())->method('getRouteCollection')->will($this->returnValue($this->collection));
     $this->collection->expects($this->once())->method('all')->will($this->returnValue($this->routes));
     $converter = new ExtReferenceConverter($this->router, ['App' => 'graviton.core.rest.app', 'Language' => 'graviton.i18n.rest.language', 'ShowCase' => 'gravitondyn.showcase.rest.showcase']);
     $this->assertEquals($extReference, $converter->getExtReference($url));
 }