clientservicetest.php 703 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright (c) 2015 Lukas Reschke <lukas@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OC\Http\Client;
  9. use GuzzleHttp\Client as GuzzleClient;
  10. /**
  11. * Class ClientServiceTest
  12. */
  13. class ClientServiceTest extends \Test\TestCase {
  14. public function testNewClient() {
  15. $config = $this->getMock('\OCP\IConfig');
  16. $certificateManager = $this->getMock('\OCP\ICertificateManager');
  17. $expected = new Client($config, $certificateManager, new GuzzleClient());
  18. $clientService = new ClientService($config, $certificateManager);
  19. $this->assertEquals($expected, $clientService->newClient());
  20. }
  21. }