Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Fix some typos in the tests #51811

Merged
merged 5 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/Integration/Console/PromptsValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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.');
}
Expand Down Expand Up @@ -71,7 +71,7 @@ public function handle()
}
}

class DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttibutesCommand extends Command
class DummyPromptsWithLaravelRulesCommandWithInlineMessagesAndAttributesCommand extends Command
{
protected $signature = 'prompts-laravel-rules-inline-test';

Expand Down
12 changes: 6 additions & 6 deletions tests/Integration/Routing/PrecognitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', [
Expand All @@ -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', [
Expand Down Expand Up @@ -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', [
Expand Down Expand Up @@ -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, [
Expand All @@ -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, [
Expand All @@ -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([
Expand Down
2 changes: 1 addition & 1 deletion tests/Pagination/CursorPaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion tests/Pagination/LengthAwarePaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/Process/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ public function testBasicFakeAssertions()
});
}

public function testAsssertingThatNothingRan()
public function testAssertingThatNothingRan()
{
$factory = new Factory;

Expand Down