2017-11-02 01:45:43 +00:00
|
|
|
<?php
|
|
|
|
|
2021-01-23 20:09:16 +00:00
|
|
|
namespace Pterodactyl\Tests\Unit\Http\Middleware;
|
2017-11-02 01:45:43 +00:00
|
|
|
|
2021-01-23 20:09:16 +00:00
|
|
|
use Pterodactyl\Tests\TestCase;
|
|
|
|
use Pterodactyl\Tests\Traits\Http\RequestMockHelpers;
|
|
|
|
use Pterodactyl\Tests\Traits\Http\MocksMiddlewareClosure;
|
|
|
|
use Pterodactyl\Tests\Assertions\MiddlewareAttributeAssertionsTrait;
|
2017-11-02 01:45:43 +00:00
|
|
|
|
|
|
|
abstract class MiddlewareTestCase extends TestCase
|
|
|
|
{
|
2021-01-23 20:33:34 +00:00
|
|
|
use MiddlewareAttributeAssertionsTrait;
|
|
|
|
use MocksMiddlewareClosure;
|
|
|
|
use 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
|
|
|
}
|
|
|
|
}
|