Skip to content

Commit

Permalink
fix backend test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikspark committed Nov 4, 2016
1 parent a77df92 commit 7163b9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
18 changes: 1 addition & 17 deletions tests/_helpers/_generated/WebGuyActions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php //[STAMP] 2c83e6fc75a363c550479c801f7df371
<?php //[STAMP] f3c18da4af1b43570ca7f3390588d95b
namespace _generated;

// This class was automatically generated by build task
Expand Down Expand Up @@ -2887,20 +2887,4 @@ public function dontSeeInDatabase($table, $criteria = null) {
public function grabFromDatabase($table, $column, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabFromDatabase', func_get_args()));
}


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Returns the number of rows in a database
*
* @param string $table Table name
* @param array $criteria Search criteria [Optional]
*
* @return int
* @see \Codeception\Module\Db::grabNumRecords()
*/
public function grabNumRecords($table, $criteria = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('grabNumRecords', func_get_args()));
}
}
6 changes: 6 additions & 0 deletions tests/acceptance/backend/MainBackendCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,19 @@ public function tryToTestMainBackend(WebGuy $I, $scenario)
$I->see('Пользователи', 'h1');

$I->amGoingTo('change backend language');

$I->amOnPage('/en/backend');
$I->see('Control panel "Yupe!"', 'h1');

$I->amOnPage('/ru/backend');
$I->amOnPage('/backend');
$I->see('Панель управления "Юпи!"', 'h1');

$I->amOnPage('/en/backend');
$I->see('Control panel "Yupe!"', 'h1');

$I->amOnPage('/ru/backend');
$I->amOnPage('/backend');
$I->see('Панель управления "Юпи!"', 'h1');

$I->amGoingTo('change theme settings');
Expand Down

0 comments on commit 7163b9f

Please sign in to comment.