From 1d5368c532488fe8fabd4411f113486787d65c4e Mon Sep 17 00:00:00 2001 From: tamiroh Date: Sun, 16 Jun 2024 13:08:11 +0900 Subject: [PATCH 1/5] Fix `Paginatoris` -> `Paginator` --- tests/Pagination/LengthAwarePaginatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Pagination/LengthAwarePaginatorTest.php b/tests/Pagination/LengthAwarePaginatorTest.php index d5711d6ba802..21171456ba9b 100644 --- a/tests/Pagination/LengthAwarePaginatorTest.php +++ b/tests/Pagination/LengthAwarePaginatorTest.php @@ -56,7 +56,7 @@ public function testLengthAwarePaginatorSetCorrectInformationWithNoItems() $this->assertEmpty($paginator->items()); } - public function testLengthAwarePaginatorisOnFirstAndLastPage() + public function testLengthAwarePaginatorOnFirstAndLastPage() { $paginator = new LengthAwarePaginator(['1', '2', '3', '4'], 4, 2, 2); From 2d9b34dc7575837391d71d6e6c0d0f2a871e5428 Mon Sep 17 00:00:00 2001 From: tamiroh Date: Sun, 16 Jun 2024 13:09:27 +0900 Subject: [PATCH 2/5] Fix `LengthAwarePaginatoris` -> `CursorPaginator` --- tests/Pagination/CursorPaginatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Pagination/CursorPaginatorTest.php b/tests/Pagination/CursorPaginatorTest.php index 6e74b80114dd..ce32537c1670 100644 --- a/tests/Pagination/CursorPaginatorTest.php +++ b/tests/Pagination/CursorPaginatorTest.php @@ -79,7 +79,7 @@ public function testCanTransformPaginatorItems() $this->assertSame([['id' => 6], ['id' => 7]], $p->items()); } - public function testLengthAwarePaginatorisOnFirstAndLastPage() + public function testCursorPaginatorOnFirstAndLastPage() { $paginator = new CursorPaginator([['id' => 1], ['id' => 2], ['id' => 3], ['id' => 4]], 2, null, [ 'parameters' => ['id'], From e2c3efaff2d4e2cafff0ec01d8093d969afb4cb0 Mon Sep 17 00:00:00 2001 From: tamiroh Date: Sun, 16 Jun 2024 13:11:31 +0900 Subject: [PATCH 3/5] Fix `Attibute` -> `Attribute` --- tests/Integration/Console/PromptsValidationTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Integration/Console/PromptsValidationTest.php b/tests/Integration/Console/PromptsValidationTest.php index b6f0f631b301..1ab80a3e62b9 100644 --- a/tests/Integration/Console/PromptsValidationTest.php +++ b/tests/Integration/Console/PromptsValidationTest.php @@ -15,7 +15,7 @@ protected function defineEnvironment($app) $app[Kernel::class]->registerCommand(new DummyPromptsValidationCommand()); $app[Kernel::class]->registerCommand(new DummyPromptsWithLaravelRulesCommand()); $app[Kernel::class]->registerCommand(new DummyPromptsWithLaravelRulesMessagesAndAttributesCommand()); - $app[Kernel::class]->registerCommand(new DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttibutesCommand()); + $app[Kernel::class]->registerCommand(new DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttributesCommand()); } public function testValidationForPrompts() @@ -37,7 +37,7 @@ public function testValidationWithLaravelRulesAndNoCustomization() public function testValidationWithLaravelRulesInlineMessagesAndAttributes() { $this - ->artisan(DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttibutesCommand::class) + ->artisan(DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttributesCommand::class) ->expectsQuestion('What is your name?', '') ->expectsOutputToContain('Your full name is mandatory.'); } @@ -71,7 +71,7 @@ public function handle() } } -class DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttibutesCommand extends Command +class DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttributesCommand extends Command { protected $signature = 'prompts-laravel-rules-inline-test'; From 403a72194d3e89b4af44b6e0a63a75a3d2bfd234 Mon Sep 17 00:00:00 2001 From: tamiroh Date: Sun, 16 Jun 2024 13:12:06 +0900 Subject: [PATCH 4/5] Fix `Assserting` -> `Asserting` --- tests/Process/ProcessTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Process/ProcessTest.php b/tests/Process/ProcessTest.php index 4c914b2e9698..6e5790cfa590 100644 --- a/tests/Process/ProcessTest.php +++ b/tests/Process/ProcessTest.php @@ -716,7 +716,7 @@ public function testBasicFakeAssertions() }); } - public function testAsssertingThatNothingRan() + public function testAssertingThatNothingRan() { $factory = new Factory; From 39ad33cc353cd806d82ceea31c40dd46e9e52018 Mon Sep 17 00:00:00 2001 From: tamiroh Date: Sun, 16 Jun 2024 13:15:27 +0900 Subject: [PATCH 5/5] Fix `Predicition` -> `Prediction` --- tests/Integration/Routing/PrecognitionTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Integration/Routing/PrecognitionTest.php b/tests/Integration/Routing/PrecognitionTest.php index 21862425d39b..a87ca82b9180 100644 --- a/tests/Integration/Routing/PrecognitionTest.php +++ b/tests/Integration/Routing/PrecognitionTest.php @@ -300,7 +300,7 @@ public function testArbitraryBailResponseIsParsedToResponse() public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidate() { - Route::post('test-route', [PrecognitionTestController::class, 'methodWherePredicitionValidatesViaControllerValidate']) + Route::post('test-route', [PrecognitionTestController::class, 'methodWherePredictionValidatesViaControllerValidate']) ->middleware(PrecognitionInvokingController::class); $response = $this->postJson('test-route', [ @@ -327,7 +327,7 @@ public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidate( public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidateWithBag() { - Route::post('test-route', [PrecognitionTestController::class, 'methodWherePredicitionValidatesViaControllerValidateWithBag']) + Route::post('test-route', [PrecognitionTestController::class, 'methodWherePredictionValidatesViaControllerValidateWithBag']) ->middleware(PrecognitionInvokingController::class); $response = $this->postJson('test-route', [ @@ -431,7 +431,7 @@ public function testClientCanSpecifyInputsToValidateWhenUsingRequestValidateWith public function testClientCanSpecifyInputsToValidateWhenUsingControllerValidateWithPassingArrayOfRules() { - Route::post('test-route', [PrecognitionTestController::class, 'methodWherePredicitionValidatesViaControllerValidateWith']) + Route::post('test-route', [PrecognitionTestController::class, 'methodWherePredictionValidatesViaControllerValidateWith']) ->middleware(PrecognitionInvokingController::class); $response = $this->postJson('test-route', [ @@ -1131,7 +1131,7 @@ public function methodWhereNestedRulesAreValidatedViaControllerValidateWith(Requ fail(); } - public function methodWherePredicitionValidatesViaControllerValidate(Request $request) + public function methodWherePredictionValidatesViaControllerValidate(Request $request) { precognitive(function () use ($request) { $this->validate($request, [ @@ -1147,7 +1147,7 @@ public function methodWherePredicitionValidatesViaControllerValidate(Request $re fail(); } - public function methodWherePredicitionValidatesViaControllerValidateWithBag(Request $request) + public function methodWherePredictionValidatesViaControllerValidateWithBag(Request $request) { precognitive(function () use ($request) { $this->validateWithBag('custom-bag', $request, [ @@ -1163,7 +1163,7 @@ public function methodWherePredicitionValidatesViaControllerValidateWithBag(Requ fail(); } - public function methodWherePredicitionValidatesViaControllerValidateWith(Request $request) + public function methodWherePredictionValidatesViaControllerValidateWith(Request $request) { precognitive(function () use ($request) { $this->validateWith([