mirror of
https://github.com/elyby/accounts.git
synced 2024-12-02 11:41:05 +05:30
27 lines
701 B
PHP
27 lines
701 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 = '/oauth2/v1/validate';
|
|
$this->actor->sendGET($this->getUrl($queryParams));
|
|
}
|
|
|
|
public function complete($queryParams = [], $postParams = []) {
|
|
$this->route = '/oauth2/v1/complete';
|
|
$this->actor->sendPOST($this->getUrl($queryParams), $postParams);
|
|
}
|
|
|
|
public function issueToken($postParams = []) {
|
|
$this->route = '/oauth2/v1/token';
|
|
$this->actor->sendPOST($this->getUrl(), $postParams);
|
|
}
|
|
|
|
}
|