From dec43502f130d757defc7755292bc3605715df75 Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Fri, 14 Jun 2024 12:47:49 +0200 Subject: [PATCH] Renamed test methods --- tests/Unit/UserSecretStorageHealthCheckTest.php | 4 ++-- tests/Unit/UserStorageHealthCheckTest.php | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/Unit/UserSecretStorageHealthCheckTest.php b/tests/Unit/UserSecretStorageHealthCheckTest.php index 78069b95..d209d8ea 100644 --- a/tests/Unit/UserSecretStorageHealthCheckTest.php +++ b/tests/Unit/UserSecretStorageHealthCheckTest.php @@ -23,7 +23,7 @@ class UserSecretStorageHealthCheckTest extends TestCase { - public function testCheckReturnsReportWhenStateStorageHealthCheckPasses(): void + public function testCheckReturnsReportWhenUserSecretStorageHealthCheckPasses(): void { $tiqrUserRepository = $this->createMock(TiqrUserRepositoryInterface::class); $tiqrUserRepository->method('userSecretStorageHealthCheck')->willReturn(true); @@ -36,7 +36,7 @@ public function testCheckReturnsReportWhenStateStorageHealthCheckPasses(): void $this->assertSame($report, $result); } - public function testCheckReturnsStatusDownWhenStateStorageHealthCheckFails(): void + public function testCheckReturnsStatusDownWhenUserSecretStorageHealthCheckFails(): void { $tiqrUserRepository = $this->createMock(TiqrUserRepositoryInterface::class); $tiqrUserRepository->method('userSecretStorageHealthCheck')->willReturn(false); diff --git a/tests/Unit/UserStorageHealthCheckTest.php b/tests/Unit/UserStorageHealthCheckTest.php index 02a3a476..a2ca3e4d 100644 --- a/tests/Unit/UserStorageHealthCheckTest.php +++ b/tests/Unit/UserStorageHealthCheckTest.php @@ -18,15 +18,12 @@ namespace Unit; use OpenConext\MonitorBundle\HealthCheck\HealthReportInterface; use PHPUnit\Framework\TestCase; -use Surfnet\Tiqr\HealthCheck\StateStorageHealthCheck; use Surfnet\Tiqr\HealthCheck\UserStorageHealthCheck; -use Surfnet\Tiqr\Tiqr\Legacy\TiqrUserRepository; -use Surfnet\Tiqr\Tiqr\TiqrServiceInterface; use Surfnet\Tiqr\Tiqr\TiqrUserRepositoryInterface; class UserStorageHealthCheckTest extends TestCase { - public function testCheckReturnsReportWhenStateStorageHealthCheckPasses(): void + public function testCheckReturnsReportWhenUserStorageHealthCheckPasses(): void { $tiqrUserRepository = $this->createMock(TiqrUserRepositoryInterface::class); $tiqrUserRepository->method('userStorageHealthCheck')->willReturn(true); @@ -39,7 +36,7 @@ public function testCheckReturnsReportWhenStateStorageHealthCheckPasses(): void $this->assertSame($report, $result); } - public function testCheckReturnsStatusDownWhenStateStorageHealthCheckFails(): void + public function testCheckReturnsStatusDownWhenUserStorageHealthCheckFails(): void { $tiqrUserRepository = $this->createMock(TiqrUserRepositoryInterface::class); $tiqrUserRepository->method('userStorageHealthCheck')->willReturn(false);