Renamed app

This commit is contained in:
2019-01-29 15:17:39 +01:00
parent 344d62d7dd
commit 7c551bd581
19 changed files with 257 additions and 20 deletions

View File

@ -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'));
}
}

View File

@ -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
);
}

View File

@ -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');