72bf365285
persist and list with database create episodeAction list reponse (with mocked timestamp, started and total) create episodeActions with received values update existing episodeActions by unique episode link receive and store subscription changes deal with multiple subscription changes in single request split database into subdirectories only return subscription changes younger then passed parameter since parse passed timestamp parse passed timestamp for episode_actions listing only return list of urls for subscription changes align list endpoint naming schema store userId with episode actions and subscriptions return json object on application root route
30 lines
694 B
PHP
30 lines
694 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() {
|
|
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'));
|
|
}
|
|
|
|
}
|