mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix test cases.
This commit is contained in:
@@ -100,7 +100,7 @@ final class CurrencyControllerTest extends TestCase
|
||||
$this->actingAs($user);
|
||||
|
||||
// create test data
|
||||
$this->createTestCurrencies(10, true);
|
||||
$this->createTestCurrencies(9, true);
|
||||
|
||||
// test API
|
||||
$response = $this->get(route('api.v1.autocomplete.currencies'), ['Accept' => 'application/json']);
|
||||
@@ -134,7 +134,7 @@ final class CurrencyControllerTest extends TestCase
|
||||
$response = $this->get(route('api.v1.autocomplete.currencies'), ['Accept' => 'application/json']);
|
||||
$response->assertStatus(200);
|
||||
$response->assertHeader('Content-Type', 'application/json');
|
||||
$response->assertJsonCount(0);
|
||||
$response->assertJsonCount(1); // always connects to EUR.
|
||||
}
|
||||
|
||||
public function testGivenAuthenticatedRequestWhenCallingTheCurrenciesEndpointWithQueryThenReturnsCurrenciesWithLimit(): void
|
||||
|
Reference in New Issue
Block a user