1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 02:17:37 +02:00

Upgrade to L5 + huge refactor + more. closes #2

New stuff:
- Signup + email confirmation.
- Updated authentication strategy with remember cookies. closes #5
- New search system with some example gambits! This is cool - check out
the source. Fulltext drivers will be implemented as decorators
overriding the EloquentPostRepository’s findByContent method.
- Lay down the foundation for bootstrapping the Ember app.
- Update Web layer’s asset manager to properly publish CSS/JS files.
- Console commands to run installation migrations and seeds.

Refactoring:
- New structure: move models, repositories, commands, and events into
their own namespaces, rather than grouping by entity.
- All events are classes.
- Use L5 middleware and command bus implementations.
- Clearer use of repositories and the Active Record pattern.
Repositories are used only for retrieval of ActiveRecord objects, and
then save/delete operations are called directly on those ActiveRecords.
This way, we don’t over-abstract at the cost of Eloquent magic, but
testing is still easy.
- Refactor of Web layer so that it uses the Actions routing
architecture.
- “Actor” concept instead of depending on Laravel’s Auth.
- General cleanup!
This commit is contained in:
Toby Zerner
2015-02-24 20:33:18 +10:30
parent 0e4e44c358
commit 2c46888db5
266 changed files with 5562 additions and 4658 deletions

View File

@@ -1,11 +1,11 @@
<?php //[STAMP] 93c972ae47d60c70b9045d971476f0bc
<?php //[STAMP] 0c4e854121e386cfc0ad09b1634fc196
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Codeception\Module\Laravel4;
use Codeception\Module\Laravel5;
use Codeception\Module\REST;
use Codeception\Module\Asserts;
use Codeception\Module\ApiHelper;
@@ -31,22 +31,13 @@ class ApiTester extends \Codeception\Actor
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Enable Laravel filters for next requests.
* @see \Codeception\Module\Laravel4::haveEnabledFilters()
*/
public function haveEnabledFilters() {
return $this->scenario->runStep(new \Codeception\Step\Action('haveEnabledFilters', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
* Provides access the Laravel application object.
*
* Disable Laravel filters for next requests.
* @see \Codeception\Module\Laravel4::haveDisabledFilters()
* @return \Illuminate\Foundation\Application
* @see \Codeception\Module\Laravel5::getApplication()
*/
public function haveDisabledFilters() {
return $this->scenario->runStep(new \Codeception\Step\Action('haveDisabledFilters', func_get_args()));
public function getApplication() {
return $this->scenario->runStep(new \Codeception\Step\Action('getApplication', func_get_args()));
}
@@ -63,7 +54,7 @@ class ApiTester extends \Codeception\Actor
*
* @param $route
* @param array $params
* @see \Codeception\Module\Laravel4::amOnRoute()
* @see \Codeception\Module\Laravel5::amOnRoute()
*/
public function amOnRoute($route, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Condition('amOnRoute', func_get_args()));
@@ -83,7 +74,7 @@ class ApiTester extends \Codeception\Actor
*
* @param $action
* @param array $params
* @see \Codeception\Module\Laravel4::amOnAction()
* @see \Codeception\Module\Laravel5::amOnAction()
*/
public function amOnAction($action, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Condition('amOnAction', func_get_args()));
@@ -103,7 +94,7 @@ class ApiTester extends \Codeception\Actor
* @param $route
* @param array $params
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeCurrentRouteIs()
* @see \Codeception\Module\Laravel5::seeCurrentRouteIs()
*/
public function canSeeCurrentRouteIs($route, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentRouteIs', func_get_args()));
@@ -120,7 +111,7 @@ class ApiTester extends \Codeception\Actor
* ```
* @param $route
* @param array $params
* @see \Codeception\Module\Laravel4::seeCurrentRouteIs()
* @see \Codeception\Module\Laravel5::seeCurrentRouteIs()
*/
public function seeCurrentRouteIs($route, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeCurrentRouteIs', func_get_args()));
@@ -141,7 +132,7 @@ class ApiTester extends \Codeception\Actor
* @param $action
* @param array $params
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeCurrentActionIs()
* @see \Codeception\Module\Laravel5::seeCurrentActionIs()
*/
public function canSeeCurrentActionIs($action, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentActionIs', func_get_args()));
@@ -159,7 +150,7 @@ class ApiTester extends \Codeception\Actor
*
* @param $action
* @param array $params
* @see \Codeception\Module\Laravel4::seeCurrentActionIs()
* @see \Codeception\Module\Laravel5::seeCurrentActionIs()
*/
public function seeCurrentActionIs($action, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeCurrentActionIs', func_get_args()));
@@ -175,7 +166,7 @@ class ApiTester extends \Codeception\Actor
* @param mixed $value
* @return void
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeInSession()
* @see \Codeception\Module\Laravel5::seeInSession()
*/
public function canSeeInSession($key, $value = null) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeInSession', func_get_args()));
@@ -188,7 +179,7 @@ class ApiTester extends \Codeception\Actor
* @param string|array $key
* @param mixed $value
* @return void
* @see \Codeception\Module\Laravel4::seeInSession()
* @see \Codeception\Module\Laravel5::seeInSession()
*/
public function seeInSession($key, $value = null) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeInSession', func_get_args()));
@@ -203,7 +194,7 @@ class ApiTester extends \Codeception\Actor
* @param array $bindings
* @return void
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeSessionHasValues()
* @see \Codeception\Module\Laravel5::seeSessionHasValues()
*/
public function canSeeSessionHasValues($bindings) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeSessionHasValues', func_get_args()));
@@ -215,7 +206,7 @@ class ApiTester extends \Codeception\Actor
*
* @param array $bindings
* @return void
* @see \Codeception\Module\Laravel4::seeSessionHasValues()
* @see \Codeception\Module\Laravel5::seeSessionHasValues()
*/
public function seeSessionHasValues($bindings) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeSessionHasValues', func_get_args()));
@@ -225,74 +216,121 @@ class ApiTester extends \Codeception\Actor
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Assert that Session has error messages
* The seeSessionHasValues cannot be used, as Message bag Object is returned by Laravel4
* Assert that the form errors are bound to the View.
*
* Useful for validation messages and generally messages array
* e.g.
* return `Redirect::to('register')->withErrors($validator);`
*
* Example of Usage
*
* ``` php
* <?php
* $I->seeSessionErrorMessage(array('username'=>'Invalid Username'));
* ?>
* ```
* @param array $bindings
* @return bool
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeSessionErrorMessage()
* @see \Codeception\Module\Laravel5::seeFormHasErrors()
*/
public function canSeeSessionErrorMessage($bindings) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeSessionErrorMessage', func_get_args()));
public function canSeeFormHasErrors() {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeFormHasErrors', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Assert that Session has error messages
* The seeSessionHasValues cannot be used, as Message bag Object is returned by Laravel4
* Assert that the form errors are bound to the View.
*
* Useful for validation messages and generally messages array
* e.g.
* return `Redirect::to('register')->withErrors($validator);`
*
* Example of Usage
*
* ``` php
* <?php
* $I->seeSessionErrorMessage(array('username'=>'Invalid Username'));
* ?>
* ```
* @param array $bindings
* @see \Codeception\Module\Laravel4::seeSessionErrorMessage()
* @return bool
* @see \Codeception\Module\Laravel5::seeFormHasErrors()
*/
public function seeSessionErrorMessage($bindings) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeSessionErrorMessage', func_get_args()));
public function seeFormHasErrors() {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeFormHasErrors', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Assert that the session has errors bound.
* Assert that specific form error messages are set in the view.
*
* @return bool
* Useful for validation messages and generally messages array
* e.g.
* return `Redirect::to('register')->withErrors($validator);`
*
* Example of Usage
*
* ``` php
* <?php
* $I->seeFormErrorMessages(array('username'=>'Invalid Username'));
* ?>
* ```
* @param array $bindings
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeSessionHasErrors()
* @see \Codeception\Module\Laravel5::seeFormErrorMessages()
*/
public function canSeeSessionHasErrors() {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeSessionHasErrors', func_get_args()));
public function canSeeFormErrorMessages($bindings) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeFormErrorMessages', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Assert that the session has errors bound.
* Assert that specific form error messages are set in the view.
*
* @return bool
* @see \Codeception\Module\Laravel4::seeSessionHasErrors()
* Useful for validation messages and generally messages array
* e.g.
* return `Redirect::to('register')->withErrors($validator);`
*
* Example of Usage
*
* ``` php
* <?php
* $I->seeFormErrorMessages(array('username'=>'Invalid Username'));
* ?>
* ```
* @param array $bindings
* @see \Codeception\Module\Laravel5::seeFormErrorMessages()
*/
public function seeSessionHasErrors() {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeSessionHasErrors', func_get_args()));
public function seeFormErrorMessages($bindings) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeFormErrorMessages', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Assert that specific form error message is set in the view.
*
* Useful for validation messages and generally messages array
* e.g.
* return `Redirect::to('register')->withErrors($validator);`
*
* Example of Usage
*
* ``` php
* <?php
* $I->seeFormErrorMessage('username', 'Invalid Username');
* ?>
* ```
* @param string $key
* @param string $errorMessage
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel5::seeFormErrorMessage()
*/
public function canSeeFormErrorMessage($key, $errorMessage) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeFormErrorMessage', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Assert that specific form error message is set in the view.
*
* Useful for validation messages and generally messages array
* e.g.
* return `Redirect::to('register')->withErrors($validator);`
*
* Example of Usage
*
* ``` php
* <?php
* $I->seeFormErrorMessage('username', 'Invalid Username');
* ?>
* ```
* @param string $key
* @param string $errorMessage
* @see \Codeception\Module\Laravel5::seeFormErrorMessage()
*/
public function seeFormErrorMessage($key, $errorMessage) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeFormErrorMessage', func_get_args()));
}
@@ -300,12 +338,13 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Set the currently logged in user for the application.
* Takes either `UserInterface` instance or array of credentials.
* Takes either an object that implements the User interface or
* an array of credentials.
*
* @param \Illuminate\Auth\UserInterface|array $user
* @param \Illuminate\Contracts\Auth\User|array $user
* @param string $driver
* @return void
* @see \Codeception\Module\Laravel4::amLoggedAs()
* @see \Codeception\Module\Laravel5::amLoggedAs()
*/
public function amLoggedAs($user, $driver = null) {
return $this->scenario->runStep(new \Codeception\Step\Condition('amLoggedAs', func_get_args()));
@@ -316,7 +355,7 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Logs user out
* @see \Codeception\Module\Laravel4::logout()
* @see \Codeception\Module\Laravel5::logout()
*/
public function logout() {
return $this->scenario->runStep(new \Codeception\Step\Action('logout', func_get_args()));
@@ -328,7 +367,7 @@ class ApiTester extends \Codeception\Actor
*
* Checks that user is authenticated
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeAuthentication()
* @see \Codeception\Module\Laravel5::seeAuthentication()
*/
public function canSeeAuthentication() {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeAuthentication', func_get_args()));
@@ -337,7 +376,7 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that user is authenticated
* @see \Codeception\Module\Laravel4::seeAuthentication()
* @see \Codeception\Module\Laravel5::seeAuthentication()
*/
public function seeAuthentication() {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeAuthentication', func_get_args()));
@@ -349,7 +388,7 @@ class ApiTester extends \Codeception\Actor
*
* Check that user is not authenticated
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::dontSeeAuthentication()
* @see \Codeception\Module\Laravel5::dontSeeAuthentication()
*/
public function cantSeeAuthentication() {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeAuthentication', func_get_args()));
@@ -358,7 +397,7 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Check that user is not authenticated
* @see \Codeception\Module\Laravel4::dontSeeAuthentication()
* @see \Codeception\Module\Laravel5::dontSeeAuthentication()
*/
public function dontSeeAuthentication() {
return $this->scenario->runStep(new \Codeception\Step\Assertion('dontSeeAuthentication', func_get_args()));
@@ -389,7 +428,7 @@ class ApiTester extends \Codeception\Actor
*
* @param string $class
* @return mixed
* @see \Codeception\Module\Laravel4::grabService()
* @see \Codeception\Module\Laravel5::grabService()
*/
public function grabService($class) {
return $this->scenario->runStep(new \Codeception\Step\Action('grabService', func_get_args()));
@@ -410,7 +449,7 @@ class ApiTester extends \Codeception\Actor
* @param $model
* @param array $attributes
* @return mixed
* @see \Codeception\Module\Laravel4::haveRecord()
* @see \Codeception\Module\Laravel5::haveRecord()
*/
public function haveRecord($model, $attributes = null) {
return $this->scenario->runStep(new \Codeception\Step\Action('haveRecord', func_get_args()));
@@ -429,7 +468,7 @@ class ApiTester extends \Codeception\Actor
* @param $model
* @param array $attributes
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::seeRecord()
* @see \Codeception\Module\Laravel5::seeRecord()
*/
public function canSeeRecord($model, $attributes = null) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeRecord', func_get_args()));
@@ -445,7 +484,7 @@ class ApiTester extends \Codeception\Actor
*
* @param $model
* @param array $attributes
* @see \Codeception\Module\Laravel4::seeRecord()
* @see \Codeception\Module\Laravel5::seeRecord()
*/
public function seeRecord($model, $attributes = null) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeRecord', func_get_args()));
@@ -466,7 +505,7 @@ class ApiTester extends \Codeception\Actor
* @param $model
* @param array $attributes
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\Laravel4::dontSeeRecord()
* @see \Codeception\Module\Laravel5::dontSeeRecord()
*/
public function cantSeeRecord($model, $attributes = null) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeRecord', func_get_args()));
@@ -484,7 +523,7 @@ class ApiTester extends \Codeception\Actor
*
* @param $model
* @param array $attributes
* @see \Codeception\Module\Laravel4::dontSeeRecord()
* @see \Codeception\Module\Laravel5::dontSeeRecord()
*/
public function dontSeeRecord($model, $attributes = null) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('dontSeeRecord', func_get_args()));
@@ -505,7 +544,7 @@ class ApiTester extends \Codeception\Actor
* @param $model
* @param array $attributes
* @return mixed
* @see \Codeception\Module\Laravel4::grabRecord()
* @see \Codeception\Module\Laravel5::grabRecord()
*/
public function grabRecord($model, $attributes = null) {
return $this->scenario->runStep(new \Codeception\Step\Action('grabRecord', func_get_args()));
@@ -1519,6 +1558,7 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Sets a cookie with the given name and value.
* You can set additional cookie params like `domain`, `path`, `expire`, `secure` in array passed as last argument.
*
* ``` php
* <?php
@@ -1526,13 +1566,16 @@ class ApiTester extends \Codeception\Actor
* ?>
* ```
*
* @param $cookie
* @param $value
* @param $name
* @param $val
* @param array $params
* @internal param $cookie
* @internal param $value
*
* @return mixed
* @see \Codeception\Lib\InnerBrowser::setCookie()
*/
public function setCookie($name, $val) {
public function setCookie($name, $val, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Action('setCookie', func_get_args()));
}
@@ -1541,13 +1584,15 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Grabs a cookie value.
* You can set additional cookie params like `domain`, `path` in array passed as last argument.
*
* @param $cookie
*
* @param array $params
* @return mixed
* @see \Codeception\Lib\InnerBrowser::grabCookie()
*/
public function grabCookie($name) {
public function grabCookie($name, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Action('grabCookie', func_get_args()));
}
@@ -1556,6 +1601,7 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that a cookie with the given name is set.
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
*
* ``` php
* <?php
@@ -1564,18 +1610,19 @@ class ApiTester extends \Codeception\Actor
* ```
*
* @param $cookie
*
* @param array $params
* @return mixed
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::seeCookie()
*/
public function canSeeCookie($name) {
public function canSeeCookie($name, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('seeCookie', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that a cookie with the given name is set.
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
*
* ``` php
* <?php
@@ -1584,11 +1631,11 @@ class ApiTester extends \Codeception\Actor
* ```
*
* @param $cookie
*
* @param array $params
* @return mixed
* @see \Codeception\Lib\InnerBrowser::seeCookie()
*/
public function seeCookie($name) {
public function seeCookie($name, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args()));
}
@@ -1597,27 +1644,31 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that there isn't a cookie with the given name.
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
*
* @param $cookie
*
* @param array $params
* @return mixed
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
*/
public function cantSeeCookie($name) {
public function cantSeeCookie($name, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCookie', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that there isn't a cookie with the given name.
* You can set additional cookie params like `domain`, `path` as array passed in last argument.
*
* @param $cookie
*
* @param array $params
* @return mixed
* @see \Codeception\Lib\InnerBrowser::dontSeeCookie()
*/
public function dontSeeCookie($name) {
public function dontSeeCookie($name, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args()));
}
@@ -1626,13 +1677,15 @@ class ApiTester extends \Codeception\Actor
* [!] Method is generated. Documentation taken from corresponding module.
*
* Unsets cookie with the given name.
* You can set additional cookie params like `domain`, `path` in array passed as last argument.
*
* @param $cookie
*
* @param array $params
* @return mixed
* @see \Codeception\Lib\InnerBrowser::resetCookie()
*/
public function resetCookie($name) {
public function resetCookie($name, $params = null) {
return $this->scenario->runStep(new \Codeception\Step\Action('resetCookie', func_get_args()));
}
@@ -2527,7 +2580,6 @@ class ApiTester extends \Codeception\Actor
* This assertion allows you to check the structure of response json.
* *
* ```json
* ```json
* { "store": {
* "book": [
* { "category": "reference",
@@ -2575,7 +2627,6 @@ class ApiTester extends \Codeception\Actor
* This assertion allows you to check the structure of response json.
* *
* ```json
* ```json
* { "store": {
* "book": [
* { "category": "reference",
@@ -2715,6 +2766,31 @@ class ApiTester extends \Codeception\Actor
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Opposite to seeResponseJsonMatchesJsonPath
*
* @param array $jsonPath
* Conditional Assertion: Test won't be stopped on fail
* @see \Codeception\Module\REST::dontSeeResponseJsonMatchesJsonPath()
*/
public function cantSeeResponseJsonMatchesJsonPath($jsonPath) {
return $this->scenario->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeResponseJsonMatchesJsonPath', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Opposite to seeResponseJsonMatchesJsonPath
*
* @param array $jsonPath
* @see \Codeception\Module\REST::dontSeeResponseJsonMatchesJsonPath()
*/
public function dontSeeResponseJsonMatchesJsonPath($jsonPath) {
return $this->scenario->runStep(new \Codeception\Step\Assertion('dontSeeResponseJsonMatchesJsonPath', func_get_args()));
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
@@ -3048,7 +3124,7 @@ class ApiTester extends \Codeception\Actor
*
* @see \Codeception\Module\ApiHelper::login()
*/
public function login($identifier, $password) {
public function login($identification, $password) {
return $this->scenario->runStep(new \Codeception\Step\Action('login', func_get_args()));
}