mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 18:41:20 +00:00
Fixed some tests.
This commit is contained in:
@@ -137,4 +137,26 @@ class AccountModelTest extends TestCase
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Models\Account::getNameForEditformAttribute
|
||||
*/
|
||||
public function testGetNameForEditformAttribute()
|
||||
{
|
||||
// normal name is normal
|
||||
$account = FactoryMuffin::create('FireflyIII\Models\Account');
|
||||
$this->assertEquals($account->name, $account->getNameForEditformAttribute());
|
||||
}
|
||||
/**
|
||||
* @covers FireflyIII\Models\Account::getNameForEditformAttribute
|
||||
*/
|
||||
public function testGetNameForEditformAttributeCash()
|
||||
{
|
||||
FactoryMuffin::create('FireflyIII\Models\AccountType');
|
||||
FactoryMuffin::create('FireflyIII\Models\AccountType');
|
||||
FactoryMuffin::create('FireflyIII\Models\AccountType');
|
||||
// cash name is empty
|
||||
$account = FactoryMuffin::create('FireflyIII\Models\Account');
|
||||
$this->assertEquals('', $account->getNameForEditformAttribute());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user