diff --git a/tests/Feature/Controllers/Import/FileControllerTest.php b/tests/Feature/Controllers/Import/FileControllerTest.php new file mode 100644 index 0000000000..0c8ad37202 --- /dev/null +++ b/tests/Feature/Controllers/Import/FileControllerTest.php @@ -0,0 +1,215 @@ +mock(CsvConfigurator::class); + $configurator->shouldReceive('setJob')->once(); + $configurator->shouldReceive('isJobConfigured')->once()->andReturn(false); + $configurator->shouldReceive('getNextView')->once()->andReturn('import.csv.initial'); + $configurator->shouldReceive('getNextData')->andReturn(['specifics' => [], 'delimiters' => [], 'accounts' => []])->once(); + + + $this->be($this->user()); + $response = $this->get(route('import.file.configure', ['configure'])); + $response->assertStatus(200); + $response->assertSee('