Fixed the tests.

This commit is contained in:
James Cole
2015-05-18 17:57:44 +02:00
parent 1bf0968bfe
commit 4113c4ff40
12 changed files with 242 additions and 11 deletions

View File

@@ -103,7 +103,7 @@ class HomeControllerTest extends TestCase
$repository->shouldReceive('getFrontpageTransactions')->once()->andReturn($journals);
// language preference:
$language = FactoryMuffin::create('FireflyIII\Models\Preference');
$language = FactoryMuffin::create('FireflyIII\Models\Preference');
$language->data = 'en';
$language->save();
Preferences::shouldReceive('get')->withAnyArgs()->andReturn($language);