Use the lazy root to make tests pass 🙈

This commit is contained in:
Joas Schilling 2016-08-24 09:52:05 +02:00
parent 80fe499707
commit c7c53aefb2
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
3 changed files with 2 additions and 6 deletions

View File

@ -23,14 +23,11 @@
namespace OCA\Theming;
use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Files\IRootFolder;
class ThemingDefaults extends \OC_Defaults {
/** @var IConfig */
@ -57,6 +54,7 @@ class ThemingDefaults extends \OC_Defaults {
* @param IL10N $l
* @param IURLGenerator $urlGenerator
* @param \OC_Defaults $defaults
* @param IRootFolder $rootFolder
*/
public function __construct(IConfig $config,
IL10N $l,

View File

@ -78,8 +78,6 @@ class ThemingDefaultsTest extends TestCase {
$this->defaults,
$this->rootFolder
);
//return parent::setUp();
}
public function testGetNameWithDefault() {

View File

@ -656,7 +656,7 @@ class Server extends ServerContainer implements IServerContainer {
$c->getL10N('theming'),
$c->getURLGenerator(),
new \OC_Defaults(),
$c->getRootFolder()
$c->getLazyRootFolder()
);
}
return new \OC_Defaults();