Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test
  • Loading branch information
caleeli committed Jun 6, 2024
commit 1ad9ba72a2e3db8c32c89e87256a7a3ea288f9f3
10 changes: 1 addition & 9 deletions tests/Feature/Api/V1_1/TaskControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,10 @@ class TaskControllerTest extends TestCase

protected $taskController;

public function testIndex()
{
$task = ProcessRequestToken::factory()->create(['element_type' => 'task']);
$response = $this->taskController->index();
$this->assertContains($task->id, $response->data);
}

public function testShow()
{
$task = ProcessRequestToken::factory()->create();
// $response = $this->apiCall('GET', route('api.1.1.tasks.show', $task->id));
$response = $this->apiCall('GET', route('api.tasks.show', $task->id) . '?include=screen,nested');
$response = $this->apiCall('GET', route('api.1.1.tasks.show', $task->id));
$response->assertStatus(200)
->assertJson(['id' => $task->id]);
}
Expand Down