| @@ 367-379 (lines=13) @@ | ||
| 364 | } |
|
| 365 | } |
|
| 366 | ||
| 367 | public function testFlexibleClientShouldBePrivateByDefault(): void |
|
| 368 | { |
|
| 369 | $this->load([ |
|
| 370 | 'clients' => [ |
|
| 371 | 'acme' => [ |
|
| 372 | 'flexible_client' => true, |
|
| 373 | ], |
|
| 374 | ], |
|
| 375 | ]); |
|
| 376 | ||
| 377 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
| 378 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.flexible')->isPublic()); |
|
| 379 | } |
|
| 380 | ||
| 381 | public function testHttpMethodsClientShouldBePrivateByDefault(): void |
|
| 382 | { |
|
| @@ 381-393 (lines=13) @@ | ||
| 378 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.flexible')->isPublic()); |
|
| 379 | } |
|
| 380 | ||
| 381 | public function testHttpMethodsClientShouldBePrivateByDefault(): void |
|
| 382 | { |
|
| 383 | $this->load([ |
|
| 384 | 'clients' => [ |
|
| 385 | 'acme' => [ |
|
| 386 | 'http_methods_client' => true, |
|
| 387 | ], |
|
| 388 | ], |
|
| 389 | ]); |
|
| 390 | ||
| 391 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
| 392 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.http_methods')->isPublic()); |
|
| 393 | } |
|
| 394 | ||
| 395 | public function testBatchClientShouldBePrivateByDefault(): void |
|
| 396 | { |
|
| @@ 395-407 (lines=13) @@ | ||
| 392 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.http_methods')->isPublic()); |
|
| 393 | } |
|
| 394 | ||
| 395 | public function testBatchClientShouldBePrivateByDefault(): void |
|
| 396 | { |
|
| 397 | $this->load([ |
|
| 398 | 'clients' => [ |
|
| 399 | 'acme' => [ |
|
| 400 | 'batch_client' => true, |
|
| 401 | ], |
|
| 402 | ], |
|
| 403 | ]); |
|
| 404 | ||
| 405 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
| 406 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.batch_client')->isPublic()); |
|
| 407 | } |
|
| 408 | ||
| 409 | public function testClientCanBePublic(): void |
|
| 410 | { |
|