Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions tests/codeception/acceptance/WikiCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class WikiCest
/**
* @param AcceptanceTester $I
* @throws \Exception
*/
*
public function testInstallSpaceEntry(AcceptanceTester $I)
{
$I->amAdmin();
Expand All @@ -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();
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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');
}
}*/
}
22 changes: 11 additions & 11 deletions tests/codeception/api/ListCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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()) {
Expand Down