]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix unit tests
authorMorris Jobke <morris.jobke@gmail.com>
Wed, 2 Oct 2013 09:25:44 +0000 (11:25 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Wed, 2 Oct 2013 09:25:44 +0000 (11:25 +0200)
tests/lib/autoloader.php

index b182dc8747795fae5c777e901526f1d36f9fe7c9..314a8ebee8d4c9ca86d101f0658d4b2555db4acb 100644 (file)
@@ -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() {