mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 13:44:58 -06:00
34 lines
576 B
PHP
34 lines
576 B
PHP
|
<?php
|
||
|
use League\FactoryMuffin\Facade as f;
|
||
|
|
||
|
/**
|
||
|
* Class AccountTest
|
||
|
*/
|
||
|
class UserTest extends TestCase
|
||
|
{
|
||
|
|
||
|
public function setUp()
|
||
|
{
|
||
|
parent::setUp();
|
||
|
}
|
||
|
|
||
|
public function tearDown()
|
||
|
{
|
||
|
parent::tearDown();
|
||
|
}
|
||
|
|
||
|
// tests
|
||
|
|
||
|
public function testPreference()
|
||
|
{
|
||
|
$pref = f::create('Preference');
|
||
|
$this->assertEquals($pref->user_id, $pref->user->id);
|
||
|
}
|
||
|
|
||
|
public function testReminder()
|
||
|
{
|
||
|
$reminder = f::create('Reminder');
|
||
|
$this->assertEquals($reminder->user_id, $reminder->user->id);
|
||
|
}
|
||
|
|
||
|
}
|