Skip to content

Commit

Permalink
update protocols test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Apr 2, 2024
1 parent ae0a87a commit 84ef518
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Feature/ProtocolsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Tests\Feature;

use App\Console\Commands\ProcessProtocolsCommand;
use App\Enum\OrganisationStatus;
use App\Enum\UserRole;
use App\Models\Document;
use App\Models\Organisation;
Expand Down Expand Up @@ -166,6 +167,16 @@ public function it_sends_notifications_for_protocols_that_expire_today(): void
$this->getPlatformAdmins(),
SummaryExpiredProtocols::class
);

$this->assertDatabaseHas('organisations', [
'id' => $document->organisation->id,
'status' => OrganisationStatus::inactive,
]);

$this->assertDatabaseMissing('organisations', [
'id' => $document->organisation->id,
'status' => OrganisationStatus::active,
]);
}

/** @test */
Expand Down

0 comments on commit 84ef518

Please sign in to comment.