2016-01-03 05:48:37 +05:30
|
|
|
<?php
|
|
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
|
|
|
|
use yii\codeception\BasePage;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property \tests\codeception\api\FunctionalTester $actor
|
|
|
|
*/
|
|
|
|
class LoginRoute extends BasePage {
|
|
|
|
|
2016-01-15 14:51:27 +05:30
|
|
|
public $route = ['authentication/login'];
|
2016-01-03 05:48:37 +05:30
|
|
|
|
2016-01-15 14:51:27 +05:30
|
|
|
public function login($login = '', $password = '') {
|
2016-01-03 05:48:37 +05:30
|
|
|
$this->actor->sendPOST($this->getUrl(), [
|
2016-01-15 14:51:27 +05:30
|
|
|
'login' => $login,
|
2016-01-03 05:48:37 +05:30
|
|
|
'password' => $password,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|