mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
New tests and new configuration for tests.
This commit is contained in:
27
tests/unit/AccountTypeTest.php
Normal file
27
tests/unit/AccountTypeTest.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
use League\FactoryMuffin\Facade as f;
|
||||
|
||||
/**
|
||||
* Class AccountTypeTest
|
||||
*/
|
||||
class AccountTypeTest extends TestCase
|
||||
{
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
// tests
|
||||
public function testAccounts()
|
||||
{
|
||||
$account = f::create('Account');
|
||||
$this->assertCount(1, $account->accountType()->first()->accounts()->get());
|
||||
}
|
||||
|
||||
}
|
||||
26
tests/unit/BudgetTest.php
Normal file
26
tests/unit/BudgetTest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
use League\FactoryMuffin\Facade as f;
|
||||
|
||||
/**
|
||||
* Class AccountTypeTest
|
||||
*/
|
||||
class BudgetTest extends TestCase
|
||||
{
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function testUser()
|
||||
{
|
||||
$budget = f::create('Budget');
|
||||
$this->assertInstanceOf('User', $budget->user);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
class ExamplATest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
// tests
|
||||
public function testMe()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user