mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix more tests.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* This software may be modified and distributed under the terms
|
||||
* of the MIT license. See the LICENSE file for details.
|
||||
*/
|
||||
use Illuminate\Support\Collection;
|
||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||
|
||||
|
||||
@@ -177,10 +178,10 @@ class CsvControllerTest extends TestCase
|
||||
$importer->shouldReceive('setData')->once()->with($data);
|
||||
$importer->shouldReceive('run')->once()->withNoArgs();
|
||||
|
||||
$importer->shouldReceive('getRows')->once()->withNoArgs();
|
||||
$importer->shouldReceive('getErrors')->once()->withNoArgs();
|
||||
$importer->shouldReceive('getImported')->once()->withNoArgs();
|
||||
$importer->shouldReceive('getJournals')->once()->withNoArgs();
|
||||
$importer->shouldReceive('getRows')->once()->withNoArgs()->andReturn(0);
|
||||
$importer->shouldReceive('getErrors')->once()->withNoArgs()->andReturn([]);
|
||||
$importer->shouldReceive('getImported')->once()->withNoArgs()->andReturn(0);
|
||||
$importer->shouldReceive('getJournals')->once()->withNoArgs()->andReturn(new Collection);
|
||||
|
||||
$this->call('GET', '/csv/process');
|
||||
$this->assertResponseStatus(200);
|
||||
|
Reference in New Issue
Block a user