mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-05 12:01:16 +00:00
Added unicity to AccountType model. Fixed some tests because of this.
This commit is contained in:
@@ -77,10 +77,8 @@ class ChartControllerTest extends TestCase
|
||||
public function testHomeAccountInfo()
|
||||
{
|
||||
$account = f::create('Account');
|
||||
$type = f::create('AccountType');
|
||||
$type->type = 'Default account';
|
||||
$type->save();
|
||||
$account->accounttype()->associate($type);
|
||||
$accountType = \AccountType::whereType('Default account')->first();
|
||||
$account->accounttype()->associate($accountType);
|
||||
$account->save();
|
||||
// for successful binding:
|
||||
Auth::shouldReceive('user')->andReturn($account->user()->first());
|
||||
|
Reference in New Issue
Block a user