yii2-netdisk/tests/_pages/LoginPage.php

23 lines
375 B
PHP
Raw Normal View History

2013-12-02 19:25:21 +08:00
<?php
namespace tests\_pages;
use yii\codeception\BasePage;
2013-12-02 19:25:21 +08:00
class LoginPage extends BasePage
{
2013-12-18 12:43:43 +08:00
public $route = 'site/login';
2013-12-02 19:25:21 +08:00
/**
* @param string $username
* @param string $password
*/
public function login($username, $password)
{
2013-12-29 08:26:18 +08:00
$this->guy->submitForm('#login-form', [
'LoginForm[username]' => $username,
'LoginForm[password]' => $password,
]);
2013-12-02 19:25:21 +08:00
}
}