Skip to content

Commit e63f180

Browse files
committed
test: fix CI
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent 7ee6d0c commit e63f180

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎tests/system/Commands/Utilities/Routes/AutoRouteCollectorTest.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ public function testGet(): void
5252
'',
5353
'\Tests\Support\Controllers\FormRequestController::store',
5454
],
55+
[
56+
'auto',
57+
'formRequestController/storeContinuing[/...]',
58+
'',
59+
'\Tests\Support\Controllers\FormRequestController::storeContinuing',
60+
],
5561
[
5662
'auto',
5763
'formRequestController/update[/...]',

‎tests/system/HTTP/FormRequestTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ protected function failedValidation(array $errors, array $preparedData): ?Respon
436436

437437
$response = $formRequest->resolveRequest();
438438

439-
$this->assertNull($response);
439+
$this->assertNotInstanceOf(ResponseInterface::class, $response);
440440
$this->assertArrayHasKey('body', $formRequest->errors);
441441
$this->assertSame(['title' => 'Hello World'], $formRequest->preparedData);
442442
$this->assertSame([], $formRequest->getValidated());
@@ -475,7 +475,7 @@ protected function failedValidation(array $errors, array $preparedData): ?Respon
475475

476476
$response = $formRequest->resolveRequest();
477477

478-
$this->assertNull($response);
478+
$this->assertNotInstanceOf(ResponseInterface::class, $response);
479479
$this->assertFalse($formRequest->failedValidationCalled);
480480
$this->assertSame(['title' => 'Hello World', 'body' => 'Some body text'], $formRequest->getValidated());
481481
}

0 commit comments

Comments
 (0)