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