summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/tests
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-07-12 16:30:09 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2016-07-14 16:39:48 +0200
commit2f23054b0126ec3497a7b632ff2399f6f3843a0f (patch)
tree603a047056a9e3893112a92b5565aa50aa62028d /apps/federatedfilesharing/tests
parent33a685bc41628e1236015bd79cc8f82b9cb6cabf (diff)
downloadnextcloud-server-2f23054b0126ec3497a7b632ff2399f6f3843a0f.tar.gz
nextcloud-server-2f23054b0126ec3497a7b632ff2399f6f3843a0f.zip
s/ownCloud/Nextcloud
Diffstat (limited to 'apps/federatedfilesharing/tests')
-rw-r--r--apps/federatedfilesharing/tests/Controller/SaveToNextcloudControllerTest.php (renamed from apps/federatedfilesharing/tests/Controller/SaveToOwnCloudControllerTest.php)16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/federatedfilesharing/tests/Controller/SaveToOwnCloudControllerTest.php b/apps/federatedfilesharing/tests/Controller/SaveToNextcloudControllerTest.php
index 9189ac76601..60136212c31 100644
--- a/apps/federatedfilesharing/tests/Controller/SaveToOwnCloudControllerTest.php
+++ b/apps/federatedfilesharing/tests/Controller/SaveToNextcloudControllerTest.php
@@ -24,7 +24,7 @@ namespace OCA\FederatedFileSharing\Tests\Controller;
use OC\HintException;
use OCA\FederatedFileSharing\AddressHandler;
-use OCA\FederatedFileSharing\Controller\SaveToOwnCloudController;
+use OCA\FederatedFileSharing\Controller\SaveToNextcloudController;
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCP\AppFramework\Http;
use OCP\Files\IRootFolder;
@@ -34,9 +34,9 @@ use OCP\Share;
use OCP\Share\IManager;
use OCP\Share\IShare;
-class SaveToOwnCloudControllerTest extends \Test\TestCase {
+class SaveToNextcloudControllerTest extends \Test\TestCase {
- /** @var SaveToOwnCloudController */
+ /** @var SaveToNextcloudController */
private $controller;
/** @var \OCP\IRequest | \PHPUnit_Framework_MockObject_MockObject */
@@ -77,7 +77,7 @@ class SaveToOwnCloudControllerTest extends \Test\TestCase {
$this->share = new \OC\Share20\Share($this->rootFolder, $this->userManager);
$this->session = $this->getMock('OCP\ISession');
- $this->controller = new SaveToOwnCloudController(
+ $this->controller = new SaveToNextcloudController(
'federatedfilesharing', $this->request,
$this->federatedShareProvider,
$this->shareManager,
@@ -87,7 +87,7 @@ class SaveToOwnCloudControllerTest extends \Test\TestCase {
}
/**
- * @dataProvider dataTestSaveToOwnCloud
+ * @dataProvider dataTestSaveToNextcloud
*
* @param string $shareWith
* @param bool $validShareWith
@@ -96,7 +96,7 @@ class SaveToOwnCloudControllerTest extends \Test\TestCase {
* @param bool $createSuccessful
* @param string $expectedReturnData
*/
- public function testSaveToOwnCloud($shareWith, $validShareWith, $token, $validToken, $createSuccessful, $expectedReturnData) {
+ public function testSaveToNextcloud($shareWith, $validShareWith, $token, $validToken, $createSuccessful, $expectedReturnData) {
$this->addressHandler->expects($this->any())->method('splitUserRemote')
->with($shareWith)
->willReturnCallback(
@@ -133,7 +133,7 @@ class SaveToOwnCloudControllerTest extends \Test\TestCase {
}
);
- $result = $this->controller->saveToOwnCloud($shareWith, $token);
+ $result = $this->controller->saveToNextcloud($shareWith, $token);
$errorCase = !$validShareWith || !$validToken || !$createSuccessful;
@@ -150,7 +150,7 @@ class SaveToOwnCloudControllerTest extends \Test\TestCase {
}
- public function dataTestSaveToOwnCloud() {
+ public function dataTestSaveToNextcloud() {
return [
//shareWith, validShareWith, token, validToken, createSuccessful, expectedReturnData
['user@server', true, 'token', true, true, 'server'],