We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a204cf0 commit 89e2791Copy full SHA for 89e2791
tests/Feature/Api/TaskAssignmentExecutionTest.php
@@ -155,13 +155,13 @@ public function testDueDate()
155
// Verify status
156
$response->assertStatus(201);
157
// Get the ProcessRequest
158
- $currentDate = Carbon::now();
+ $expectedDueDate = Carbon::now()->addHours(24);
159
$task = ProcessRequestToken::where([
160
'process_request_id' => $response['id'],
161
'status' => 'ACTIVE',
162
])->firstOrFail();
163
-
164
- $this->assertGreaterThanOrEqual($task->due_at, $currentDate);
+
+ $this->assertTrue($task->due_at->greaterThanOrEqualTo($expectedDueDate));
165
}
166
167
public function testSelfServeAssignment()
0 commit comments