Test/Tests/RpcTest.php 1 location
|
@@ 40-46 (lines=7) @@
|
37 |
|
* |
38 |
|
* @throws InvalidMethodParametersException |
39 |
|
*/ |
40 |
|
public function testValidController(array $args) |
41 |
|
{ |
42 |
|
$client = self::createClient(); |
43 |
|
$client->request('POST', '/test/', array_replace(['method' => 'test/method'], $args)); |
44 |
|
|
45 |
|
self::assertTrue($client->getResponse()->isSuccessful()); |
46 |
|
} |
47 |
|
|
48 |
|
/** |
49 |
|
* @dataProvider getInvalidArgumentVariants |
Test/Tests/SecurityControllerTest.php 1 location
|
@@ 10-16 (lines=7) @@
|
7 |
|
|
8 |
|
final class SecurityControllerTest extends WebTestCase |
9 |
|
{ |
10 |
|
public function testPublicAction() |
11 |
|
{ |
12 |
|
$client = self::createClient(); |
13 |
|
$client->request('POST', '/test/', ['method' => 'security/public']); |
14 |
|
|
15 |
|
self::assertTrue($client->getResponse()->isSuccessful()); |
16 |
|
} |
17 |
|
|
18 |
|
/** |
19 |
|
* @expectedException \Symfony\Component\Security\Core\Exception\InsufficientAuthenticationException |