Fix php cs issues

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-04-22 19:57:19 +02:00
parent 7ad5daabeb
commit 52febb396c
130 changed files with 1068 additions and 1424 deletions

View File

@@ -21,34 +21,30 @@
*
*/
use OCP\AppFramework\App;
use Test\TestCase;
/**
* This test shows how to make a small Integration Test. Query your class
* directly from the container, only pass in mocks if needed and run your tests
* against the database
*/
class AppTest extends TestCase {
private $container;
private $container;
private $app;
public function setUp(): void {
parent::setUp();
$this->app = new \OCA\Deck\AppInfo\Application();
$this->container = $this->app->getContainer();
}
public function setUp(): void {
parent::setUp();
$this->app = new \OCA\Deck\AppInfo\Application();
$this->container = $this->app->getContainer();
}
public function testAppInstalled() {
$appManager = $this->container->query('OCP\App\IAppManager');
$this->assertTrue($appManager->isInstalled('deck'));
}
public function testAppInstalled() {
$appManager = $this->container->query('OCP\App\IAppManager');
$this->assertTrue($appManager->isInstalled('deck'));
}
public function testNavigationEntry() {
public function testNavigationEntry() {
$this->app->registerNavigationEntry();
$this->assertTrue(true);
}
}