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) {
|
2016-09-07 20:26:30 +05:30
|
|
|
$this->route = '/minecraft/session/join';
|
2016-09-03 04:24:22 +05:30
|
|
|
$this->actor->sendPOST($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-05 20:25:38 +05:30
|
|
|
public function joinLegacy(array $params) {
|
2016-09-07 20:26:30 +05:30
|
|
|
$this->route = '/minecraft/session/legacy/join';
|
2016-09-05 20:25:38 +05:30
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-06 15:26:39 +05:30
|
|
|
public function hasJoined(array $params) {
|
2016-09-07 20:26:30 +05:30
|
|
|
$this->route = '/minecraft/session/hasJoined';
|
2016-09-06 15:26:39 +05:30
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function hasJoinedLegacy(array $params) {
|
2016-09-07 20:26:30 +05:30
|
|
|
$this->route = '/minecraft/session/legacy/hasJoined';
|
2016-09-06 15:26:39 +05:30
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-08 15:37:43 +05:30
|
|
|
public function profile($profileUuid) {
|
|
|
|
$this->route = '/minecraft/session/profile/' . $profileUuid;
|
|
|
|
$this->actor->sendGET($this->getUrl());
|
|
|
|
}
|
|
|
|
|
2016-09-03 04:24:22 +05:30
|
|
|
}
|