From 0a3a3c3b5688b17c6a6d09229e3c95c09c577716 Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 14 Aug 2023 16:30:14 +0200 Subject: [PATCH] make tests happy again --- tests/Unit/Controllers/NewsControllerTest.php | 4 ++-- tests/Unit/Http/SessionServiceProviderTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Unit/Controllers/NewsControllerTest.php b/tests/Unit/Controllers/NewsControllerTest.php index cb6e5e15..2dceca36 100644 --- a/tests/Unit/Controllers/NewsControllerTest.php +++ b/tests/Unit/Controllers/NewsControllerTest.php @@ -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 diff --git a/tests/Unit/Http/SessionServiceProviderTest.php b/tests/Unit/Http/SessionServiceProviderTest.php index 6cd6b8cd..6734ea12 100644 --- a/tests/Unit/Http/SessionServiceProviderTest.php +++ b/tests/Unit/Http/SessionServiceProviderTest.php @@ -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, ], ],