mirror of
https://github.com/elyby/accounts.git
synced 2024-11-19 19:53:08 +05:30
22 lines
451 B
PHP
22 lines
451 B
PHP
<?php
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
use yii\codeception\BasePage;
|
|
|
|
/**
|
|
* Represents loging page
|
|
* @property \tests\codeception\api\FunctionalTester $actor
|
|
*/
|
|
class LoginRoute extends BasePage {
|
|
|
|
public $route = 'login/authentication/login-info';
|
|
|
|
public function login($email, $password) {
|
|
$this->actor->sendPOST($this->getUrl(), [
|
|
'email' => $email,
|
|
'password' => $password,
|
|
]);
|
|
}
|
|
|
|
}
|