2017-11-02 01:45:43 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Unit\Http\Middleware;
|
|
|
|
|
|
|
|
use Tests\TestCase;
|
2017-11-03 21:43:28 +00:00
|
|
|
use Tests\Traits\Http\RequestMockHelpers;
|
2017-11-02 01:45:43 +00:00
|
|
|
use Tests\Traits\Http\MocksMiddlewareClosure;
|
|
|
|
use Tests\Assertions\MiddlewareAttributeAssertionsTrait;
|
|
|
|
|
|
|
|
abstract class MiddlewareTestCase extends TestCase
|
|
|
|
{
|
2017-11-03 21:43:28 +00:00
|
|
|
use MiddlewareAttributeAssertionsTrait, MocksMiddlewareClosure, RequestMockHelpers;
|
2017-11-02 01:45:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Setup tests with a mocked request object and normal attributes.
|
|
|
|
*/
|
2020-05-09 16:00:52 +00:00
|
|
|
public function setUp(): void
|
2017-11-02 01:45:43 +00:00
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
|
2017-11-03 21:43:28 +00:00
|
|
|
$this->buildRequestMock();
|
2017-11-02 01:45:43 +00:00
|
|
|
}
|
|
|
|
}
|