Renamed app
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\ApplicationsAutoUpdater\Tests\Integration\Controller;
|
||||
namespace OCA\AppsAutoUpdater\Tests\Integration\Controller;
|
||||
|
||||
use OCP\AppFramework\App;
|
||||
use Test\TestCase;
|
||||
@ -17,13 +17,13 @@ class AppTest extends TestCase {
|
||||
|
||||
public function setUp() {
|
||||
parent::setUp();
|
||||
$app = new App('applicationsautoupdater');
|
||||
$app = new App('appsautoupdater');
|
||||
$this->container = $app->getContainer();
|
||||
}
|
||||
|
||||
public function testAppInstalled() {
|
||||
$appManager = $this->container->query('OCP\App\IAppManager');
|
||||
$this->assertTrue($appManager->isInstalled('applicationsautoupdater'));
|
||||
$this->assertTrue($appManager->isInstalled('appsautoupdater'));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace OCA\ApplicationsAutoUpdater\Tests\Unit\Controller;
|
||||
namespace OCA\AppsAutoUpdater\Tests\Unit\Controller;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
|
||||
use OCA\ApplicationsAutoUpdater\Controller\AppsAutoUpdateController;
|
||||
use OCA\AppsAutoUpdater\Controller\AppsAutoUpdateController;
|
||||
|
||||
|
||||
class PageControllerTest extends PHPUnit_Framework_TestCase {
|
||||
@ -17,7 +17,7 @@ class PageControllerTest extends PHPUnit_Framework_TestCase {
|
||||
$request = $this->getMockBuilder('OCP\IRequest')->getMock();
|
||||
|
||||
$this->controller = new AppsAutoUpdateController(
|
||||
'applicationsautoupdater', $request, $this->userId
|
||||
'appsautoupdater', $request, $this->userId
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -9,8 +9,8 @@ require_once __DIR__.'/../../../lib/base.php';
|
||||
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
|
||||
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
|
||||
|
||||
// Fix for "Autoload path not allowed: .../applicationsautoupdater/tests/testcase.php"
|
||||
\OC_App::loadApp('applicationsautoupdater');
|
||||
// Fix for "Autoload path not allowed: .../appsautoupdater/tests/testcase.php"
|
||||
\OC_App::loadApp('appsautoupdater');
|
||||
|
||||
if(!class_exists('PHPUnit_Framework_TestCase')) {
|
||||
require_once('PHPUnit/Autoload.php');
|
||||
|
Reference in New Issue
Block a user