Add BoardControllerTest

This commit is contained in:
Julius Haertl
2016-10-29 13:19:18 +02:00
parent 5d85771ac0
commit 9d2dc711a8
6 changed files with 234 additions and 96 deletions

View File

@@ -33,11 +33,12 @@ use Test\TestCase;
class AppTest extends TestCase {
private $container;
private $app;
public function setUp() {
parent::setUp();
$app = new App('deck');
$this->container = $app->getContainer();
$this->app = new \OCA\Deck\AppInfo\Application();
$this->container = $this->app->getContainer();
}
public function testAppInstalled() {
@@ -45,4 +46,8 @@ class AppTest extends TestCase {
$this->assertTrue($appManager->isInstalled('deck'));
}
public function testNavigationEntry() {
$this->app->registerNavigationEntry();
}
}