summaryrefslogtreecommitdiffstats
path: root/tests/lib/http/client/clientservicetest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/http/client/clientservicetest.php')
-rw-r--r--tests/lib/http/client/clientservicetest.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lib/http/client/clientservicetest.php b/tests/lib/http/client/clientservicetest.php
new file mode 100644
index 00000000000..6d7acea0be7
--- /dev/null
+++ b/tests/lib/http/client/clientservicetest.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Copyright (c) 2015 Lukas Reschke <lukas@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OC\Http\Client;
+
+use GuzzleHttp\Client as GuzzleClient;
+
+/**
+ * Class ClientServiceTest
+ */
+class ClientServiceTest extends \Test\TestCase {
+ public function testNewClient() {
+ $config = $this->getMock('\OCP\IConfig');
+ $certificateManager = $this->getMock('\OCP\ICertificateManager');
+
+ $expected = new Client($config, $certificateManager, new GuzzleClient());
+ $clientService = new ClientService($config, $certificateManager);
+ $this->assertEquals($expected, $clientService->newClient());
+ }
+}