Fix tests

This commit is contained in:
James Cole 2023-12-20 06:02:35 +01:00
parent cbcadb6706
commit da4e813d9a
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 1 additions and 3 deletions

View File

@ -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
{ {

View File

@ -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');