@@ -40,13 +40,13 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | // with no action, handleRequest method SHOULD throw an exception |
| 43 | - $this->assertExceptionRaised('Exception', function () use ($admin) { |
|
| 43 | + $this->assertExceptionRaised('Exception', function() use ($admin) { |
|
| 44 | 44 | $request = new Request(); |
| 45 | 45 | $admin->handleRequest($request); |
| 46 | 46 | }); |
| 47 | 47 | |
| 48 | 48 | // with a wrong action, handleRequest method SHOULD throw an exception |
| 49 | - $this->assertExceptionRaised('Exception', function () use ($admin) { |
|
| 49 | + $this->assertExceptionRaised('Exception', function() use ($admin) { |
|
| 50 | 50 | $request = new Request([], [], [ |
| 51 | 51 | '_route_params' => [ |
| 52 | 52 | '_action' => 'bad_action' |
@@ -75,13 +75,13 @@ discard block |
||
| 75 | 75 | $this->doTestAdmin($admin, $configuration, $adminName); |
| 76 | 76 | |
| 77 | 77 | // with a current action unset, checkPermissions method SHOULD throw an exception |
| 78 | - $this->assertExceptionRaised('Exception', function () use ($admin) { |
|
| 78 | + $this->assertExceptionRaised('Exception', function() use ($admin) { |
|
| 79 | 79 | $user = new User('JohnKrovitch', 'john1234'); |
| 80 | 80 | $admin->checkPermissions($user); |
| 81 | 81 | }); |
| 82 | 82 | |
| 83 | 83 | // with the wrong roles, checkPermissions method SHOULD throw an exception |
| 84 | - $this->assertExceptionRaised(NotFoundHttpException::class, function () use ($admin) { |
|
| 84 | + $this->assertExceptionRaised(NotFoundHttpException::class, function() use ($admin) { |
|
| 85 | 85 | $request = new Request([], [], [ |
| 86 | 86 | '_route_params' => [ |
| 87 | 87 | '_action' => 'custom_list' |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | }); |
| 94 | 94 | |
| 95 | 95 | // with the wrong roles, checkPermissions method SHOULD throw an exception |
| 96 | - $this->assertExceptionRaised(NotFoundHttpException::class, function () use ($admin) { |
|
| 96 | + $this->assertExceptionRaised(NotFoundHttpException::class, function() use ($admin) { |
|
| 97 | 97 | $request = new Request([], [], [ |
| 98 | 98 | '_route_params' => [ |
| 99 | 99 | '_action' => 'custom_list' |