mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Rework tests structure. Upgrade codeception to 2.5.3. Merge params configuration into app configuration.
This commit is contained in:
26
api/tests/_pages/SessionServerRoute.php
Normal file
26
api/tests/_pages/SessionServerRoute.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace api\tests\_pages;
|
||||
|
||||
class SessionServerRoute extends BasePage {
|
||||
|
||||
public function join($params) {
|
||||
$this->getActor()->sendPOST('/api/minecraft/session/join', $params);
|
||||
}
|
||||
|
||||
public function joinLegacy(array $params) {
|
||||
$this->getActor()->sendGET('/api/minecraft/session/legacy/join', $params);
|
||||
}
|
||||
|
||||
public function hasJoined(array $params) {
|
||||
$this->getActor()->sendGET('/api/minecraft/session/hasJoined', $params);
|
||||
}
|
||||
|
||||
public function hasJoinedLegacy(array $params) {
|
||||
$this->getActor()->sendGET('/api/minecraft/session/legacy/hasJoined', $params);
|
||||
}
|
||||
|
||||
public function profile($profileUuid) {
|
||||
$this->getActor()->sendGET("/api/minecraft/session/profile/{$profileUuid}");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user