mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Improve test coverage.
This commit is contained in:
@@ -119,7 +119,7 @@ class ConfigurationControllerTest extends TestCase
|
||||
{
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
$userRepos->shouldReceive('hasRole')->withArgs([Mockery::any(), 'owner'])->atLeast()->once()->andReturn(true);
|
||||
$data = [
|
||||
$data = [
|
||||
'value' => 1,
|
||||
|
||||
];
|
||||
@@ -221,10 +221,10 @@ class ConfigurationControllerTest extends TestCase
|
||||
public function testUpdateInvalid(): void
|
||||
{
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
$data = [
|
||||
$data = [
|
||||
'value' => 'true',
|
||||
];
|
||||
$response = $this->post('/api/v1/configuration/last_update_check', $data);
|
||||
$response = $this->post('/api/v1/configuration/last_update_check', $data);
|
||||
$response->assertStatus(404);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user