<?php

namespace Illuminate\Tests\Integration\Validation;

use Illuminate\Http\Request;
use Orchestra\Testbench\TestCase;
use Illuminate\Validation\ValidationException;

/**
 * @group integration
 */
class RequestValidationTest extends TestCase
{
    public function testValidateMacro()
    {
        $request = Request::create('/', 'GET', ['name' => 'Taylor']);

        $validated = $request->validate(['name' => 'string']);

        $this->assertSame(['name' => 'Taylor'], $validated);
    }

    public function testValidateMacroWhenItFails()
    {
        $this->expectException(ValidationException::class);

        $request = Request::create('/', 'GET', ['name' => null]);

        $request->validate(['name' => 'string']);
    }
}

Add Request::validate() macro test coverage
Add Request::validate() macro test coverage

$request->validate() was never called in the test suite.
