mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 02:52:44 +00:00
Expand test to set a "custom" range.
This commit is contained in:
@@ -32,6 +32,16 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
// if selected "custom", change the session to a weird custom range:
|
||||||
|
// (20 days):
|
||||||
|
if($range === "custom") {
|
||||||
|
$this->session(
|
||||||
|
[
|
||||||
|
'start' => Carbon::now(),
|
||||||
|
'end' => Carbon::now()->subDays(20),
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -120,11 +130,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|||||||
public function tearDown()
|
public function tearDown()
|
||||||
{
|
{
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
|
|
||||||
// delete copy original.
|
|
||||||
//$original = __DIR__.'/../storage/database/testing.db';
|
|
||||||
//unlink($original);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user