| @@ 332-344 (lines=13) @@ | ||
| 329 | } |
|
| 330 | } |
|
| 331 | ||
| 332 | public function testFlexibleClientShouldBePrivateByDefault() |
|
| 333 | { |
|
| 334 | $this->load([ |
|
| 335 | 'clients' => [ |
|
| 336 | 'acme' => [ |
|
| 337 | 'flexible_client' => true, |
|
| 338 | ], |
|
| 339 | ], |
|
| 340 | ]); |
|
| 341 | ||
| 342 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
| 343 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.flexible')->isPublic()); |
|
| 344 | } |
|
| 345 | ||
| 346 | public function testHttpMethodsClientShouldBePrivateByDefault() |
|
| 347 | { |
|
| @@ 346-358 (lines=13) @@ | ||
| 343 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.flexible')->isPublic()); |
|
| 344 | } |
|
| 345 | ||
| 346 | public function testHttpMethodsClientShouldBePrivateByDefault() |
|
| 347 | { |
|
| 348 | $this->load([ |
|
| 349 | 'clients' => [ |
|
| 350 | 'acme' => [ |
|
| 351 | 'http_methods_client' => true, |
|
| 352 | ], |
|
| 353 | ], |
|
| 354 | ]); |
|
| 355 | ||
| 356 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
| 357 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.http_methods')->isPublic()); |
|
| 358 | } |
|
| 359 | ||
| 360 | public function testBatchClientShouldBePrivateByDefault() |
|
| 361 | { |
|
| @@ 360-372 (lines=13) @@ | ||
| 357 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.http_methods')->isPublic()); |
|
| 358 | } |
|
| 359 | ||
| 360 | public function testBatchClientShouldBePrivateByDefault() |
|
| 361 | { |
|
| 362 | $this->load([ |
|
| 363 | 'clients' => [ |
|
| 364 | 'acme' => [ |
|
| 365 | 'batch_client' => true, |
|
| 366 | ], |
|
| 367 | ], |
|
| 368 | ]); |
|
| 369 | ||
| 370 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
| 371 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.batch_client')->isPublic()); |
|
| 372 | } |
|
| 373 | ||
| 374 | public function testClientCanBePublic() |
|
| 375 | { |
|