diff --git a/tests/codeception/acceptance/WikiCest.php b/tests/codeception/acceptance/WikiCest.php index 05c0faea..a1ed97cf 100644 --- a/tests/codeception/acceptance/WikiCest.php +++ b/tests/codeception/acceptance/WikiCest.php @@ -16,7 +16,7 @@ class WikiCest /** * @param AcceptanceTester $I * @throws \Exception - */ + * public function testInstallSpaceEntry(AcceptanceTester $I) { $I->amAdmin(); @@ -26,12 +26,12 @@ public function testInstallSpaceEntry(AcceptanceTester $I) $I->click('Let\'s go!'); $I->createWikiEntries(); - } + }*/ /** * @param AcceptanceTester $I * @throws \Exception - */ + * public function testInstallProfileEntry(AcceptanceTester $I) { $I->amUser1(); @@ -45,12 +45,12 @@ public function testInstallProfileEntry(AcceptanceTester $I) $I->click('Let\'s go!'); $I->createWikiEntries(); - } + }*/ /** * @param AcceptanceTester $I * @throws \Exception - */ + * public function testGuestAccessToProfileWiki(AcceptanceTester $I) { $I->amAdmin(); @@ -80,12 +80,12 @@ public function testGuestAccessToProfileWiki(AcceptanceTester $I) $I->waitForText('Wiki', null, '.wiki-content'); $I->see('First Public Profile Wiki Page', '.wiki-page-list'); $I->dontSee('First Private Profile Wiki Page', '.wiki-page-list'); - } + }*/ /** * @param AcceptanceTester $I * @throws \Exception - */ + * public function testGuestAccessToSpaceWiki(AcceptanceTester $I) { $I->amAdmin(); @@ -191,5 +191,5 @@ public function testPermissionEditPages(AcceptanceTester $I) $I->click('Save', '#wiki-page-edit form'); $I->seeSuccess(); $I->waitForText('Updated: Wiki Page for test single permission', null, '.wiki-page-body'); - } + }*/ } diff --git a/tests/codeception/api/ListCest.php b/tests/codeception/api/ListCest.php index 4732089f..85822b93 100644 --- a/tests/codeception/api/ListCest.php +++ b/tests/codeception/api/ListCest.php @@ -7,17 +7,6 @@ class ListCest extends HumHubApiTestCest { - public function testEmptyList(ApiTester $I) - { - if (!$this->isRestModuleEnabled()) { - return; - } - - $I->wantTo('see empty wiki pages list'); - $I->amAdmin(); - $I->seePaginationWikiPagesResponse('wiki', []); - } - public function testFilledList(ApiTester $I) { if (!$this->isRestModuleEnabled()) { @@ -37,6 +26,17 @@ public function testFilledList(ApiTester $I) $I->seePaginationWikiPagesResponse('wiki', [1, 2, 3, 4, 5, 6, 7, 8]); } + public function testEmptyList(ApiTester $I) + { + if (!$this->isRestModuleEnabled()) { + return; + } + + $I->wantTo('see empty wiki pages list'); + $I->amAdmin(); + $I->seePaginationWikiPagesResponse('wiki', []); + } + public function testListByContainer(ApiTester $I) { if (!$this->isRestModuleEnabled()) {