Skip to content

Commit

Permalink
Renamed test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Jun 14, 2024
1 parent 8caea16 commit dec4350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/UserSecretStorageHealthCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
7 changes: 2 additions & 5 deletions tests/Unit/UserStorageHealthCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit dec4350

Please sign in to comment.