Use the lazy root to make tests pass 🙈
This commit is contained in:
parent
80fe499707
commit
c7c53aefb2
3 changed files with 2 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -78,8 +78,6 @@ class ThemingDefaultsTest extends TestCase {
|
|||
$this->defaults,
|
||||
$this->rootFolder
|
||||
);
|
||||
|
||||
//return parent::setUp();
|
||||
}
|
||||
|
||||
public function testGetNameWithDefault() {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue