Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
caleeli committed Nov 6, 2024
1 parent bda3896 commit 678b0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/Upgrade/PopulateCaseStartedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function testTokensColumn()
// Confirm record insertion into cases_started
$finalCount = DB::table('cases_started')->count();
$this->assertEquals($processRequests->count(), $finalCount, 'cases_started count should match the number of ProcessRequests created');
$casesStartedRecord = DB::table('cases_started')->where('case_number', $processRequest->id)->first();
$casesStartedRecord = DB::table('cases_started')->where('case_number', $processRequest->case_number)->first();
$this->assertNotNull($casesStartedRecord, 'Each ProcessRequest should have a corresponding record in cases_started');

$tokensArray = json_decode($casesStartedRecord->request_tokens, true);
Expand Down Expand Up @@ -157,7 +157,7 @@ public function testParticipatedColumn()
// Confirm record insertion into cases_started
$finalCount = DB::table('cases_started')->count();
$this->assertEquals($processRequests->count(), $finalCount, 'cases_started count should match the number of ProcessRequests created');
$casesStartedRecord = DB::table('cases_started')->where('case_number', $processRequest->id)->first();
$casesStartedRecord = DB::table('cases_started')->where('case_number', $processRequest->case_number)->first();
$this->assertNotNull($casesStartedRecord, 'Each ProcessRequest should have a corresponding record in cases_started');
// Prepare the participants record
$tokensArray = json_decode($casesStartedRecord->participants, true);
Expand Down

0 comments on commit 678b0ed

Please sign in to comment.