Use the lazy root to make tests pass 🙈
This commit is contained in:
parent
80fe499707
commit
c7c53aefb2
|
@ -23,14 +23,11 @@
|
||||||
namespace OCA\Theming;
|
namespace OCA\Theming;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\IL10N;
|
use OCP\IL10N;
|
||||||
use OCP\IURLGenerator;
|
use OCP\IURLGenerator;
|
||||||
use OCP\Files\IRootFolder;
|
use OCP\Files\IRootFolder;
|
||||||
|
|
||||||
|
|
||||||
class ThemingDefaults extends \OC_Defaults {
|
class ThemingDefaults extends \OC_Defaults {
|
||||||
|
|
||||||
/** @var IConfig */
|
/** @var IConfig */
|
||||||
|
@ -57,6 +54,7 @@ class ThemingDefaults extends \OC_Defaults {
|
||||||
* @param IL10N $l
|
* @param IL10N $l
|
||||||
* @param IURLGenerator $urlGenerator
|
* @param IURLGenerator $urlGenerator
|
||||||
* @param \OC_Defaults $defaults
|
* @param \OC_Defaults $defaults
|
||||||
|
* @param IRootFolder $rootFolder
|
||||||
*/
|
*/
|
||||||
public function __construct(IConfig $config,
|
public function __construct(IConfig $config,
|
||||||
IL10N $l,
|
IL10N $l,
|
||||||
|
|
|
@ -78,8 +78,6 @@ class ThemingDefaultsTest extends TestCase {
|
||||||
$this->defaults,
|
$this->defaults,
|
||||||
$this->rootFolder
|
$this->rootFolder
|
||||||
);
|
);
|
||||||
|
|
||||||
//return parent::setUp();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetNameWithDefault() {
|
public function testGetNameWithDefault() {
|
||||||
|
|
|
@ -656,7 +656,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$c->getL10N('theming'),
|
$c->getL10N('theming'),
|
||||||
$c->getURLGenerator(),
|
$c->getURLGenerator(),
|
||||||
new \OC_Defaults(),
|
new \OC_Defaults(),
|
||||||
$c->getRootFolder()
|
$c->getLazyRootFolder()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return new \OC_Defaults();
|
return new \OC_Defaults();
|
||||||
|
|
Loading…
Reference in New Issue