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