mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-14 03:54:16 +08:00
36 lines
No EOL
851 B
PHP
36 lines
No EOL
851 B
PHP
<?php
|
|
/**
|
|
* Nextcloud - passman
|
|
*
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later. See the COPYING file.
|
|
*
|
|
* @author Sander Brand <brantje@gmail.com>
|
|
* @copyright Sander Brand 2016
|
|
*/
|
|
|
|
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() {
|
|
parent::setUp();
|
|
$app = new App('passman');
|
|
$this->container = $app->getContainer();
|
|
}
|
|
|
|
public function testAppInstalled() {
|
|
$appManager = $this->container->query('OCP\App\IAppManager');
|
|
$this->assertTrue($appManager->isInstalled('passman'));
|
|
}
|
|
|
|
} |