2016-12-18 04:50:53 +05:30
|
|
|
<?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());
|
|
|
|
}
|
|
|
|
|
2017-01-05 03:27:04 +05:30
|
|
|
public function pardon($accountId) {
|
|
|
|
$this->route = '/internal/accounts/' . $accountId . '/ban';
|
|
|
|
$this->actor->sendDELETE($this->getUrl());
|
|
|
|
}
|
|
|
|
|
2017-04-03 17:24:33 +05:30
|
|
|
public function info(string $param, string $value) {
|
|
|
|
$this->route = '/internal/accounts/info';
|
|
|
|
$this->actor->sendGET($this->getUrl(), [$param => $value]);
|
|
|
|
}
|
|
|
|
|
2016-12-18 04:50:53 +05:30
|
|
|
}
|