Some changes to test coverage.

This commit is contained in:
James Cole 2016-01-22 21:08:04 +01:00
parent e1cf285272
commit 7b040e8583
4 changed files with 3 additions and 10 deletions

View File

@ -214,7 +214,7 @@ class Data
*
* @param array $specifix
*/
public function setSpecifix($specifix)
public function setSpecifix(array $specifix)
{
Session::put('csv-specifix', $specifix);
$this->specifix = $specifix;

View File

@ -396,7 +396,7 @@ class CsvController extends Controller
$settings = [];
$settings['date-format'] = Input::get('date_format');
$settings['has-headers'] = intval(Input::get('has_headers')) === 1;
$settings['specifix'] = Input::get('specifix');
$settings['specifix'] = is_array(Input::get('specifix')) ? Input::get('specifix') : [];
$settings['import-account'] = intval(Input::get('csv_import_account'));
$settings['delimiter'] = Input::get('csv_delimiter', ',');

View File

@ -18,14 +18,6 @@
<directory suffix=".php">app/</directory>
</whitelist>
</filter>
<!--
Code coverage has never been slower.
-->
<!--
<logging>
<log type="coverage-clover" target="./storage/build/clover.xml" charset="UTF-8" />
</logging>
-->
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>

View File

@ -62,6 +62,7 @@ class AccountControllerTest extends TestCase
/**
* @covers FireflyIII\Http\Controllers\AccountController::index
* @covers FireflyIII\Http\Controllers\AccountController::isInArray
*/
public function testIndex()
{