mirror of
https://github.com/elyby/accounts.git
synced 2024-11-16 10:14:02 +05:30
22 lines
532 B
PHP
22 lines
532 B
PHP
<?php
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
use yii\codeception\BasePage;
|
|
|
|
/**
|
|
* @property \tests\codeception\api\FunctionalTester $actor
|
|
*/
|
|
class OauthRoute extends BasePage {
|
|
|
|
public function validate($queryParams) {
|
|
$this->route = ['oauth/validate'];
|
|
$this->actor->sendGET($this->getUrl($queryParams));
|
|
}
|
|
|
|
public function complete($queryParams = [], $postParams = []) {
|
|
$this->route = ['oauth/complete'];
|
|
$this->actor->sendPOST($this->getUrl($queryParams), $postParams);
|
|
}
|
|
|
|
}
|