2016-09-03 04:24:22 +05:30
|
|
|
<?php
|
|
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
|
|
|
|
use yii\codeception\BasePage;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property \tests\codeception\api\FunctionalTester $actor
|
|
|
|
*/
|
|
|
|
class SessionServerRoute extends BasePage {
|
|
|
|
|
|
|
|
public function join($params) {
|
|
|
|
$this->route = ['sessionserver/session/join'];
|
|
|
|
$this->actor->sendPOST($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-05 20:25:38 +05:30
|
|
|
public function joinLegacy(array $params) {
|
|
|
|
$this->route = ['sessionserver/session/join-legacy'];
|
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-06 15:26:39 +05:30
|
|
|
public function hasJoined(array $params) {
|
|
|
|
$this->route = ['sessionserver/session/has-joined'];
|
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function hasJoinedLegacy(array $params) {
|
|
|
|
$this->route = ['sessionserver/session/has-joined-legacy'];
|
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-03 04:24:22 +05:30
|
|
|
}
|