@@ 306-318 (lines=13) @@ | ||
303 | } |
|
304 | } |
|
305 | ||
306 | public function testFlexibleClientShouldBePrivateByDefault() |
|
307 | { |
|
308 | $this->load([ |
|
309 | 'clients' => [ |
|
310 | 'acme' => [ |
|
311 | 'flexible_client' => true, |
|
312 | ], |
|
313 | ], |
|
314 | ]); |
|
315 | ||
316 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
317 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.flexible')->isPublic()); |
|
318 | } |
|
319 | ||
320 | public function testHttpMethodsClientShouldBePrivateByDefault() |
|
321 | { |
|
@@ 320-332 (lines=13) @@ | ||
317 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.flexible')->isPublic()); |
|
318 | } |
|
319 | ||
320 | public function testHttpMethodsClientShouldBePrivateByDefault() |
|
321 | { |
|
322 | $this->load([ |
|
323 | 'clients' => [ |
|
324 | 'acme' => [ |
|
325 | 'http_methods_client' => true, |
|
326 | ], |
|
327 | ], |
|
328 | ]); |
|
329 | ||
330 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
331 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.http_methods')->isPublic()); |
|
332 | } |
|
333 | ||
334 | public function testBatchClientShouldBePrivateByDefault() |
|
335 | { |
|
@@ 334-346 (lines=13) @@ | ||
331 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.http_methods')->isPublic()); |
|
332 | } |
|
333 | ||
334 | public function testBatchClientShouldBePrivateByDefault() |
|
335 | { |
|
336 | $this->load([ |
|
337 | 'clients' => [ |
|
338 | 'acme' => [ |
|
339 | 'batch_client' => true, |
|
340 | ], |
|
341 | ], |
|
342 | ]); |
|
343 | ||
344 | $this->assertContainerBuilderHasService('httplug.client.acme'); |
|
345 | $this->assertFalse($this->container->getDefinition('httplug.client.acme.batch_client')->isPublic()); |
|
346 | } |
|
347 | ||
348 | public function testClientCanBePublic() |
|
349 | { |