mirror of
https://github.com/elyby/accounts.git
synced 2024-11-19 19:53:08 +05:30
22 lines
517 B
PHP
22 lines
517 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());
|
|
}
|
|
|
|
}
|