firefly-iii/tests/unit/UserTest.php

37 lines
711 B
PHP
Raw Normal View History

2015-01-01 06:43:34 -06:00
<?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);
2015-01-02 06:57:40 -06:00
$this->assertCount(1, $pref->user->preferences()->get());
2015-01-01 06:43:34 -06:00
}
public function testReminder()
{
$reminder = f::create('Reminder');
$this->assertEquals($reminder->user_id, $reminder->user->id);
2015-01-02 06:57:40 -06:00
$this->assertCount(1, $reminder->user->reminders()->get());
2015-01-01 06:43:34 -06:00
}
2015-01-01 23:16:49 -06:00
}