<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium first forum page works');
$I->amOnPage('/podium/forum/1/1/first-forum');
$I->see('Home', 'li a');
$I->see('Main Forum', 'li a');
$I->see('First category', 'li a');
$I->see('First forum', 'li.active');
$I->see('First forum', 'h4.panel-title');
$I->see('First topic', 'a');
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium first category page works');
$I->amOnPage('/podium/category/1/first-category');
$I->see('Home', 'li a');
$I->see('Main Forum', 'li a');
$I->see('First category', 'li.active');
$I->see('First category', 'h4.panel-title');
$I->see('First forum', 'a');
$I->see('First topic', 'a');
Exemple #3
0
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium Members page works');
$I->amOnPage('/podium/members');
$I->see('Members', 'li.active a');
$I->see('Members List', 'li.active');
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium first thread page works');
$I->amOnPage('/podium/thread/1/1/1/first-topic');
$I->see('Home', 'li a');
$I->see('Main Forum', 'li a');
$I->see('First category', 'li a');
$I->see('First forum', 'li a');
$I->see('First topic', 'li.active');
$I->see('First topic', 'h4');
$I->see('First post', '.popover-content');
Exemple #5
0
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium Sign in page works');
$I->amOnPage('/podium/login');
$I->see('Sign in', 'li.active a');
$I->see('Sign in', 'li.active');
$I->seeElement('form', ['id' => 'login-form']);
Exemple #6
0
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium frontpage works');
$I->amOnPage('/');
$I->see('Home', 'li.active a');
$I->see('Main Forum', 'li.active');
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium member view page works');
$I->amOnPage('/podium/members/view/1/admin');
$I->see('Members', 'li.active a');
$I->see('Members List', 'li');
$I->see('Member View', 'li.active');
$I->see('admin', 'h2');
$I->see('Admin', '.label');
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium Register page works');
$I->amOnPage('/podium/register');
$I->see('Register', 'li.active a');
$I->see('Registration', 'li.active');
$I->seeElement('form', ['id' => 'register-form']);
Exemple #9
0
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium Moderation Team page works');
$I->amOnPage('/podium/members/mods');
$I->see('Members', 'li.active a');
$I->see('Moderation Team', 'li.active');
<?php

use tests\codeception\AcceptanceTester;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that Podium advanced search page works');
$I->amOnPage('/podium/search');
$I->see('Search Forum', 'li.active');
$I->seeElement('form', ['id' => 'search-form']);