Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit 1c305e4

Browse files
author
Mateu Aguiló Bosch
committed
test: ensure that Open API works after install
1 parent dcbd89e commit 1c305e4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/src/Functional/InstallationTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Drupal\Component\Serialization\Json;
66
use Drupal\Core\Url;
7+
use Drupal\Tests\BrowserTestBase;
78
use PHPUnit\Framework\TestCase;
89
use GuzzleHttp\Client;
910

@@ -12,7 +13,7 @@
1213
*
1314
* @group ContentaInstaller
1415
*/
15-
class InstallationTest extends TestCase {
16+
class InstallationTest extends BrowserTestBase {
1617

1718
/**
1819
* @var Client
@@ -110,6 +111,11 @@ public function testJsonApiEntryPoint() {
110111
$this->assertArrayHasKey('node--recipe', $output);
111112
}
112113

113-
public function testOpenApi() {}
114+
public function testOpenApi() {
115+
$this->getSession()->visit('/admin/api');
116+
$this->assertNotEmpty(
117+
$this->getSession()->getPage()->find('css', 'a[href="#tag/Content-Recipe"]')
118+
);
119+
}
114120

115121
}

0 commit comments

Comments
 (0)