mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Removed the code coverage ignore instructions, tests must cover this.
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -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();
|
||||||
|
Reference in New Issue
Block a user