mirror of
https://github.com/elyby/accounts.git
synced 2024-12-15 01:48:59 +05:30
27 lines
699 B
PHP
27 lines
699 B
PHP
<?php
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
use yii\codeception\BasePage;
|
|
|
|
/**
|
|
* @property \tests\codeception\api\FunctionalTester $actor
|
|
*/
|
|
class InternalRoute extends BasePage {
|
|
|
|
public function ban($accountId) {
|
|
$this->route = '/internal/accounts/' . $accountId . '/ban';
|
|
$this->actor->sendPOST($this->getUrl());
|
|
}
|
|
|
|
public function pardon($accountId) {
|
|
$this->route = '/internal/accounts/' . $accountId . '/ban';
|
|
$this->actor->sendDELETE($this->getUrl());
|
|
}
|
|
|
|
public function info(string $param, string $value) {
|
|
$this->route = '/internal/accounts/info';
|
|
$this->actor->sendGET($this->getUrl(), [$param => $value]);
|
|
}
|
|
|
|
}
|