Skip to content

Commit

Permalink
Use the lazy root to make tests pass 🙈
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen committed Aug 24, 2016
1 parent 80fe499 commit c7c53ae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions apps/theming/lib/ThemingDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions apps/theming/tests/ThemingDefaultsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ public function setUp() {
$this->defaults,
$this->rootFolder
);

//return parent::setUp();
}

public function testGetNameWithDefault() {
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ public function __construct($webRoot, \OC\Config $config) {
$c->getL10N('theming'),
$c->getURLGenerator(),
new \OC_Defaults(),
$c->getRootFolder()
$c->getLazyRootFolder()
);
}
return new \OC_Defaults();
Expand Down

0 comments on commit c7c53ae

Please sign in to comment.