diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-13 12:33:21 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-13 12:33:21 +0300 |
commit | d022b6fad49204dc2839233f0fded409e54ee003 (patch) | |
tree | b4062642a0b57658f6044a504db9a3f12b6dba7b /tests | |
parent | a037c10c88b417ca009a8c863d392213be21f999 (diff) |
Fix unit tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/autoloader.php | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/tests/lib/autoloader.php b/tests/lib/autoloader.php index f93b7c33cab..adea702eca9 100644 --- a/tests/lib/autoloader.php +++ b/tests/lib/autoloader.php @@ -21,20 +21,19 @@ class AutoLoader extends TestCase { public function testLeadingSlashOnClassName() { $this->assertEquals([ - \OC::$SERVERROOT . '/lib/private/files/storage/local.php', - ], $this->loader->findClass('\OC\Files\Storage\Local')); + \OC::$SERVERROOT . '/lib/public/files/storage/local.php', + ], $this->loader->findClass('\OCP\Files\Storage\Local')); } public function testNoLeadingSlashOnClassName() { $this->assertEquals([ - \OC::$SERVERROOT . '/lib/private/files/storage/local.php', - ], $this->loader->findClass('OC\Files\Storage\Local')); + \OC::$SERVERROOT . '/lib/public/files/storage/local.php', + ], $this->loader->findClass('OCP\Files\Storage\Local')); } public function testLegacyPath() { $this->assertEquals([ \OC::$SERVERROOT . '/lib/private/legacy/files.php', - \OC::$SERVERROOT . '/lib/private/files.php', ], $this->loader->findClass('OC_Files')); } @@ -50,16 +49,9 @@ class AutoLoader extends TestCase { ], $this->loader->findClass('Test_Foo_Bar')); } - public function testLoadCoreNamespace() { - $this->assertEquals([ - \OC::$SERVERROOT . '/lib/private/foo/bar.php', - ], $this->loader->findClass('OC\Foo\Bar')); - } - public function testLoadCore() { $this->assertEquals([ \OC::$SERVERROOT . '/lib/private/legacy/foo/bar.php', - \OC::$SERVERROOT . '/lib/private/foo/bar.php', ], $this->loader->findClass('OC_Foo_Bar')); } @@ -83,10 +75,4 @@ class AutoLoader extends TestCase { public function testLoadCoreNamespaceSettings() { $this->assertEquals([], $this->loader->findClass('OC\Settings\Foo\Bar')); } - - public function testLoadCoreNamespaceRepair() { - $this->assertEquals([ - \OC::$SERVERROOT . '/lib/private/repair/foo/bar.php', - ], $this->loader->findClass('OC\Repair\Foo\Bar')); - } } |