summaryrefslogtreecommitdiff
path: root/tests/integration/ApiTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/ApiTest.php')
-rw-r--r--tests/integration/ApiTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/integration/ApiTest.php b/tests/integration/ApiTest.php
index d7b605b6e..5cf364217 100644
--- a/tests/integration/ApiTest.php
+++ b/tests/integration/ApiTest.php
@@ -4,10 +4,12 @@ use PHPUnit\Framework\TestCase;
/** @group integration */
final class ApiTest extends TestCase {
private string $api_url = "";
+ private string $app_url = "";
private string $sid = "";
function __construct() {
$this->api_url = getenv('API_URL');
+ $this->app_url = getenv('APP_URL');
parent::__construct();
}
@@ -73,9 +75,11 @@ final class ApiTest extends TestCase {
}
public function test_subscribeToFeed() : void {
- $resp = $this->api(["op" => "subscribeToFeed", "feed_url" => "https://gitlab.tt-rss.org/tt-rss/tt-rss.atom"]);
+ $resp = $this->api(["op" => "subscribeToFeed", "feed_url" => $this->app_url . "/feed.xml"]);
$this->common_assertions($resp);
+ print_r($resp);
+
$this->assertArrayHasKey("feed_id", $resp['content']['status']);
}