Skip to content

Commit

Permalink
fix: added missing server port for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Apr 1, 2024
1 parent 5a79d27 commit 590f6d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/phpMyFAQ/Session/TokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class TokenTest extends TestCase
{
protected function setUp(): void
{
$_SERVER['SERVER_PORT'] = 443;
}

public function testGetInstance(): void
{
$token1 = Token::getInstance();
Expand All @@ -15,6 +20,9 @@ public function testGetInstance(): void
$this->assertSame($token1, $token2);
}

/**
* @throws \Exception
*/
public function testGetTokenInput(): void
{
$token = Token::getInstance();
Expand All @@ -33,7 +41,6 @@ public function testGetTokenInput(): void
*/
public function testVerifyToken(): void
{
$_SERVER['SERVER_PORT'] = 443;
$token = Token::getInstance();
$page = 'example_page';

Expand Down

0 comments on commit 590f6d7

Please sign in to comment.