Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tltneon committed Jul 25, 2024
1 parent 062d2d8 commit daf537f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

require ("src/lgsl_config.php");
require ("src/lgsl_language.php");
$lang = new tltneon\LGSL\Lang($_COOKIE['lgsl_lang'] ?? tltneon\LGSL\Lang::EN);
$_COOKIE['lgsl_lang'] = $_COOKIE['lgsl_lang'] ?? tltneon\LGSL\Lang::EN;
$lang = new tltneon\LGSL\Lang($_COOKIE['lgsl_lang']);
if (empty($lgsl_config['installed'])) header("Location: install.php");
global $output, $title;

Expand Down
2 changes: 1 addition & 1 deletion tests/mockedDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testMockServer(): LGSL\Server {
$this->assertIsArray($server->toArray());

if ($server->getStatus() === LGSL\Server::OFFLINE) {
$this->assertSame($server->getGame(), PROTOCOL::TEST);
$this->assertSame($server->getGame(), LGSL\PROTOCOL::TEST);
} else {
$this->assertSame($server->getGame(), "test_game");
}
Expand Down

0 comments on commit daf537f

Please sign in to comment.