aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/autoloader.php
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-10-02 11:25:44 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-10-02 11:25:44 +0200
commitceeb22aa5ff354419051b96e94d6239c69d7b206 (patch)
tree01b87dc21a34d8b62410915b2139f60501852114 /tests/lib/autoloader.php
parent5bb4330ea47e1c0839bebaeb9afbf1a1f7a77916 (diff)
downloadnextcloud-server-ceeb22aa5ff354419051b96e94d6239c69d7b206.tar.gz
nextcloud-server-ceeb22aa5ff354419051b96e94d6239c69d7b206.zip
fix unit tests
Diffstat (limited to 'tests/lib/autoloader.php')
-rw-r--r--tests/lib/autoloader.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/autoloader.php b/tests/lib/autoloader.php
index b182dc87477..314a8ebee8d 100644
--- a/tests/lib/autoloader.php
+++ b/tests/lib/autoloader.php
@@ -19,11 +19,11 @@ class AutoLoader extends \PHPUnit_Framework_TestCase {
}
public function testLeadingSlashOnClassName() {
- $this->assertEquals(array('private/files/storage/local.php'), $this->loader->findClass('\OC\Files\Storage\Local'));
+ $this->assertEquals(array('private/files/storage/local.php', 'files/storage/local.php'), $this->loader->findClass('\OC\Files\Storage\Local'));
}
public function testNoLeadingSlashOnClassName() {
- $this->assertEquals(array('private/files/storage/local.php'), $this->loader->findClass('OC\Files\Storage\Local'));
+ $this->assertEquals(array('private/files/storage/local.php', 'files/storage/local.php'), $this->loader->findClass('OC\Files\Storage\Local'));
}
public function testLegacyPath() {
@@ -54,7 +54,7 @@ class AutoLoader extends \PHPUnit_Framework_TestCase {
}
public function testLoadCoreNamespace() {
- $this->assertEquals(array('private/foo/bar.php'), $this->loader->findClass('OC\Foo\Bar'));
+ $this->assertEquals(array('private/foo/bar.php', 'foo/bar.php'), $this->loader->findClass('OC\Foo\Bar'));
}
public function testLoadCore() {