Skip to content

Commit

Permalink
Add missing dataProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Dec 21, 2023
1 parent dd14a55 commit 8a4f7c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Unit/Api/TimeEntryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ public function testAllReturnsClientGetResponse($response, $responseType, $expec
$this->assertSame($expectedResponse, $api->all());
}

public static function getAllData(): array
{
return [
'array response' => ['["API Response"]', 'application/json', ['API Response']],
'string response' => ['"string"', 'application/json', 'Could not convert response body into array: "string"'],
'false response' => ['', 'application/json', false],
];
}

/**
* Test all().
*
Expand Down

0 comments on commit 8a4f7c3

Please sign in to comment.