示例#1
0
 public function testResolveValidationGroupsExplicit()
 {
     $this->requestStack->expects($this->once())->method('getMasterRequest')->will($this->returnValue($request = $this->createRequestMock()));
     $request->attributes->expects($this->once())->method('get')->with($this->identicalTo('_lug_validation_groups'), $this->identicalTo([]))->will($this->returnValue($groups = ['group']));
     $this->assertSame($groups, $this->parameterResolver->resolveValidationGroups());
 }