mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Added all the old test things.
This commit is contained in:
29
tests/unit/PiggyBankRepetitionTest.php
Normal file
29
tests/unit/PiggyBankRepetitionTest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
use League\FactoryMuffin\Facade as f;
|
||||
|
||||
/**
|
||||
* Class PiggyBankRepetitionTest
|
||||
*/
|
||||
class PiggyBankRepetitionTest extends TestCase
|
||||
{
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function testPiggyBankRepetitionScope()
|
||||
{
|
||||
$repetition = f::create('PiggyBankRepetition');
|
||||
$start = clone $repetition->startdate;
|
||||
$target = clone $repetition->targetdate;
|
||||
|
||||
$this->assertCount(1, PiggyBankRepetition::starts($start)->get());
|
||||
$this->assertCount(1, PiggyBankRepetition::targets($target)->get());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user