|
@@ 291-300 (lines=10) @@
|
| 288 |
|
$this->assertSame($page, $this->parameterResolver->resolveCurrentPage()); |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
public function testResolveFormWithoutRequest() |
| 292 |
|
{ |
| 293 |
|
$resource = $this->createResourceMock(); |
| 294 |
|
$resource |
| 295 |
|
->expects($this->once()) |
| 296 |
|
->method('getForm') |
| 297 |
|
->will($this->returnValue($form = 'form')); |
| 298 |
|
|
| 299 |
|
$this->assertSame($form, $this->parameterResolver->resolveForm($resource)); |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
public function testResolveFormDefault() |
| 303 |
|
{ |
|
@@ 1078-1090 (lines=13) @@
|
| 1075 |
|
$this->assertSame($translationDomain, $this->parameterResolver->resolveTranslationDomain()); |
| 1076 |
|
} |
| 1077 |
|
|
| 1078 |
|
public function testResolveValidationGroupsWithoutRequest() |
| 1079 |
|
{ |
| 1080 |
|
$resource = $this->createResourceMock(); |
| 1081 |
|
$resource |
| 1082 |
|
->expects($this->once()) |
| 1083 |
|
->method('getName') |
| 1084 |
|
->will($this->returnValue($name = 'name')); |
| 1085 |
|
|
| 1086 |
|
$this->assertSame( |
| 1087 |
|
[Constraint::DEFAULT_GROUP, 'lug.'.$name], |
| 1088 |
|
$this->parameterResolver->resolveValidationGroups($resource) |
| 1089 |
|
); |
| 1090 |
|
} |
| 1091 |
|
|
| 1092 |
|
public function testResolveValidationGroupsDefault() |
| 1093 |
|
{ |