2016-09-03 01:54:22 +03:00
|
|
|
<?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 17:56:30 +03:00
|
|
|
$this->route = '/minecraft/session/join';
|
2016-09-03 01:54:22 +03:00
|
|
|
$this->actor->sendPOST($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-05 17:55:38 +03:00
|
|
|
public function joinLegacy(array $params) {
|
2016-09-07 17:56:30 +03:00
|
|
|
$this->route = '/minecraft/session/legacy/join';
|
2016-09-05 17:55:38 +03:00
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-06 12:56:39 +03:00
|
|
|
public function hasJoined(array $params) {
|
2016-09-07 17:56:30 +03:00
|
|
|
$this->route = '/minecraft/session/hasJoined';
|
2016-09-06 12:56:39 +03:00
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function hasJoinedLegacy(array $params) {
|
2016-09-07 17:56:30 +03:00
|
|
|
$this->route = '/minecraft/session/legacy/hasJoined';
|
2016-09-06 12:56:39 +03:00
|
|
|
$this->actor->sendGET($this->getUrl(), $params);
|
|
|
|
}
|
|
|
|
|
2016-09-08 13:07:43 +03:00
|
|
|
public function profile($profileUuid) {
|
|
|
|
$this->route = '/minecraft/session/profile/' . $profileUuid;
|
|
|
|
$this->actor->sendGET($this->getUrl());
|
|
|
|
}
|
|
|
|
|
2016-09-03 01:54:22 +03:00
|
|
|
}
|