mirror of
https://github.com/elyby/accounts.git
synced 2024-11-20 04:03:12 +05:30
0dbbb2e0de
Реорганизованы объекты Pages для Functional тестов Исправлены не переименованные тесты, оставшиеся после последнего рефакторинга
27 lines
751 B
PHP
27 lines
751 B
PHP
<?php
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
class SessionServerRoute extends BasePage {
|
|
|
|
public function join($params) {
|
|
$this->getActor()->sendPOST('/minecraft/session/join', $params);
|
|
}
|
|
|
|
public function joinLegacy(array $params) {
|
|
$this->getActor()->sendGET('/minecraft/session/legacy/join', $params);
|
|
}
|
|
|
|
public function hasJoined(array $params) {
|
|
$this->getActor()->sendGET('/minecraft/session/hasJoined', $params);
|
|
}
|
|
|
|
public function hasJoinedLegacy(array $params) {
|
|
$this->getActor()->sendGET('/minecraft/session/legacy/hasJoined', $params);
|
|
}
|
|
|
|
public function profile($profileUuid) {
|
|
$this->getActor()->sendGET("/minecraft/session/profile/{$profileUuid}");
|
|
}
|
|
|
|
}
|