aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-05-08 11:56:59 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-05-12 11:47:22 +0200
commitb777c0fd7501c59f0389c34303e98867e94cd20b (patch)
treecf413deb9fcc6b1879a28f7bd361ec3892192afa
parentb32c30b6d0aafbe65691068068a4647f852c574e (diff)
downloadnextcloud-server-b777c0fd7501c59f0389c34303e98867e94cd20b.tar.gz
nextcloud-server-b777c0fd7501c59f0389c34303e98867e94cd20b.zip
[files] rename lib to "App"
-rw-r--r--apps/files/ajax/rename.php4
-rw-r--r--apps/files/lib/app.php (renamed from apps/files/lib/files.php)2
-rw-r--r--apps/files/tests/ajax_rename.php8
3 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/ajax/rename.php b/apps/files/ajax/rename.php
index f01932a73c3..d9ba68428ee 100644
--- a/apps/files/ajax/rename.php
+++ b/apps/files/ajax/rename.php
@@ -21,12 +21,12 @@
*
*/
-require_once realpath( dirname(__FILE__).'/../lib/files.php' );
+require_once realpath( dirname(__FILE__).'/../lib/app.php' );
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
-$files = new \OCA\Files\Files(
+$files = new \OCA\Files\App(
\OC\Files\Filesystem::getView(),
\OC_L10n::get('files')
);
diff --git a/apps/files/lib/files.php b/apps/files/lib/app.php
index 2d47fcf4ad3..7cd6143e6c1 100644
--- a/apps/files/lib/files.php
+++ b/apps/files/lib/app.php
@@ -24,7 +24,7 @@
namespace OCA\Files;
-class Files {
+class App {
private $l10n;
public function __construct($view, $l10n) {
diff --git a/apps/files/tests/ajax_rename.php b/apps/files/tests/ajax_rename.php
index dee956dc8c8..6dc7c120b3b 100644
--- a/apps/files/tests/ajax_rename.php
+++ b/apps/files/tests/ajax_rename.php
@@ -22,9 +22,9 @@
*/
-require_once dirname(__FILE__).'/../lib/files.php';
+require_once dirname(__FILE__).'/../lib/app.php';
-class Test_OC_Files_Files_Rename extends \PHPUnit_Framework_TestCase {
+class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
function setUp() {
// mock OC_L10n
@@ -39,7 +39,7 @@ class Test_OC_Files_Files_Rename extends \PHPUnit_Framework_TestCase {
$viewMock->expects($this->any())
->method('rename')
->will($this->returnValue(true));
- $this->files = new \OCA\Files\Files($viewMock, $l10nMock);
+ $this->files = new \OCA\Files\App($viewMock, $l10nMock);
}
/**
@@ -91,7 +91,7 @@ class Test_OC_Files_Files_Rename extends \PHPUnit_Framework_TestCase {
$result = $this->files->rename($dir, $oldname, $newname);
$expected = array(
'success' => false,
- 'data' => array('message' => "Invalid folder name. Usage of 'Shared' is reserved by Owncloud")
+ 'data' => array('message' => "Invalid folder name. Usage of 'Shared' is reserved by ownCloud")
);
$this->assertEquals($expected, $result);