nextcloud-gpodder/tests/Integration/AppTest.php
2021-08-27 12:51:29 +02:00

30 lines
701 B
PHP

<?php
namespace OCA\GPodderSync\Tests\Integration\Controller;
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;
public function setUp() : void {
parent::setUp();
$app = new App('gpoddersync');
$this->container = $app->getContainer();
}
public function testAppInstalled() {
$appManager = $this->container->query('OCP\App\IAppManager');
$this->assertTrue($appManager->isInstalled('gpoddersync'));
}
}