mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix tests
This commit is contained in:
parent
cbcadb6706
commit
da4e813d9a
@ -32,7 +32,6 @@ class AccountControllerTest extends TestCase
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Api\V1\Controllers\Autocomplete\AccountController
|
* @covers \FireflyIII\Api\V1\Controllers\Autocomplete\AccountController
|
||||||
* @runInSeparateProcess
|
|
||||||
*/
|
*/
|
||||||
public function testGivenAnUnauthenticatedRequestWhenCallingTheAccountsEndpointThenReturns401HttpCode(): void
|
public function testGivenAnUnauthenticatedRequestWhenCallingTheAccountsEndpointThenReturns401HttpCode(): void
|
||||||
{
|
{
|
||||||
|
@ -32,13 +32,12 @@ use Tests\integration\TestCase;
|
|||||||
class NavigationCustomEndOfPeriodTest extends TestCase
|
class NavigationCustomEndOfPeriodTest extends TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @runInSeparateProcess
|
|
||||||
* @preserveGlobalState disabled
|
* @preserveGlobalState disabled
|
||||||
*/
|
*/
|
||||||
public function testGivenADateAndCustomFrequencyWhenCalculateTheDateThenReturnsTheEndOfMonthSuccessful()
|
public function testGivenADateAndCustomFrequencyWhenCalculateTheDateThenReturnsTheEndOfMonthSuccessful()
|
||||||
{
|
{
|
||||||
$from = Carbon::parse('2023-08-05');
|
$from = Carbon::parse('2023-08-05');
|
||||||
$expected = Carbon::parse('2023-09-03');
|
$expected = Carbon::parse('2023-09-04');
|
||||||
$navigation = new Navigation();
|
$navigation = new Navigation();
|
||||||
|
|
||||||
$period = $navigation->endOfPeriod($from, 'custom');
|
$period = $navigation->endOfPeriod($from, 'custom');
|
||||||
|
Loading…
Reference in New Issue
Block a user