| @@ 17-24 (lines=8) @@ | ||
| 14 | */ | |
| 15 | class DispatchAwareTraitTest extends AbstractTest | |
| 16 | { | |
| 17 | public function testCallSameControllerWithEmptyParams() | |
| 18 |     { | |
| 19 | $controller = new BaseControllerWithUtilityMethods(); | |
| 20 | $controller->setRequest(new Request()); | |
| 21 | ||
| 22 |         $response = $controller->call('hello'); | |
| 23 |         static::assertSame('hello', $response); | |
| 24 | } | |
| 25 | ||
| 26 | public function testCallSameControllerWithParams() | |
| 27 |     { | |
| @@ 26-33 (lines=8) @@ | ||
| 23 |         static::assertSame('hello', $response); | |
| 24 | } | |
| 25 | ||
| 26 | public function testCallSameControllerWithParams() | |
| 27 |     { | |
| 28 | $controller = new BaseControllerWithUtilityMethods(); | |
| 29 | $controller->setRequest(new Request()); | |
| 30 | ||
| 31 |         $response = $controller->call('hello', ['John']); | |
| 32 |         static::assertSame('hello John', $response); | |
| 33 | } | |
| 34 | } | |
| 35 | ||