コード例 #1
0
ファイル: ParameterResolverTest.php プロジェクト: php-lug/lug
 public function testResolveHateoasExplicit()
 {
     $this->requestStack->expects($this->once())->method('getMasterRequest')->will($this->returnValue($request = $this->createRequestMock()));
     $request->attributes->expects($this->once())->method('get')->with($this->identicalTo('_lug_hateoas'), $this->identicalTo(false))->will($this->returnValue(true));
     $this->assertTrue($this->parameterResolver->resolveHateoas());
 }