make tests happy again

This commit is contained in:
msquare 2023-08-14 16:30:14 +02:00
parent df4f744f6d
commit 0a3a3c3b56
2 changed files with 4 additions and 4 deletions

View File

@ -104,8 +104,8 @@ class NewsControllerTest extends ControllerTest
// Show meetings
$this->assertTrue($data['only_meetings']);
$this->assertTrue($news->isNotEmpty());
$this->assertEquals(1, $data['pages']);
$this->assertEquals(1, $data['page']);
$this->assertEquals(2, $data['pages']);
$this->assertEquals(2, $data['page']);
break;
default:
// No news found

View File

@ -59,7 +59,7 @@ class SessionServiceProviderTest extends ServiceProviderTest
NativeSessionStorage::class,
[
// 2 days
'options' => ['cookie_httponly' => true, 'name' => 'session', 'cookie_lifetime' => 172800],
'options' => ['cookie_secure' => true, 'cookie_httponly' => true, 'name' => 'session', 'cookie_lifetime' => 172800],
'handler' => null,
],
],
@ -69,7 +69,7 @@ class SessionServiceProviderTest extends ServiceProviderTest
NativeSessionStorage::class,
[
// 5 days
'options' => ['cookie_httponly' => true, 'name' => 'foobar', 'cookie_lifetime' => 432000],
'options' => ['cookie_secure' => true, 'cookie_httponly' => true, 'name' => 'foobar', 'cookie_lifetime' => 432000],
'handler' => $databaseHandler,
],
],