Removed the code coverage ignore instructions, tests must cover this.

This commit is contained in:
James Cole
2014-07-06 21:24:37 +02:00
parent 2f5afc80a3
commit 8d209f673c
3 changed files with 1 additions and 5 deletions

View File

@@ -28,7 +28,6 @@ class AccountController extends \BaseController
]; ];
foreach ($all as $account) { foreach ($all as $account) {
// @codeCoverageIgnoreStart
switch ($account->accounttype->description) { switch ($account->accounttype->description) {
case 'Default account': case 'Default account':
$list['personal'][] = $account; $list['personal'][] = $account;
@@ -44,7 +43,6 @@ class AccountController extends \BaseController
break; break;
} }
// @codeCoverageIgnoreEnd
} }
return View::make('accounts.index')->with('accounts', $list); return View::make('accounts.index')->with('accounts', $list);

View File

@@ -20,7 +20,6 @@ class MigrationController extends BaseController
public function postIndex() public function postIndex()
{ {
// @codeCoverageIgnoreStart
if (Input::hasFile('exportFile')) { if (Input::hasFile('exportFile')) {
// get content: // get content:
@@ -37,6 +36,5 @@ class MigrationController extends BaseController
} else { } else {
return View::make('error')->with('message', 'No file selected'); return View::make('error')->with('message', 'No file selected');
} }
// @codeCoverageIgnoreEnd
} }
} }

View File

@@ -30,7 +30,7 @@ class UserController extends BaseController
// Auth::login($user); // Auth::login($user);
// /** @var Firefly\Helper\Migration\MigrationHelperInterface $migration */ // /** @var Firefly\Helper\Migration\MigrationHelperInterface $migration */
// $migration = App::make('Firefly\Helper\Migration\MigrationHelperInterface'); // $migration = App::make('Firefly\Helper\Migration\MigrationHelperInterface');
// $file = '/Library/WebServer/Documents/projects/firefly-iii/app/storage/firefly-export-2014-07-03.json'; // $file = '/Library/WebServer/Documents/projects/firefly-iii/app/storage/firefly-export-2014-07-06.json';
// $migration->loadFile($file); // $migration->loadFile($file);
// if($migration->validFile()) { // if($migration->validFile()) {
// $migration->migrate(); // $migration->migrate();