misc_pterodactyl-panel/tests/Unit/Http/Middleware/MiddlewareTestCase.php

26 lines
626 B
PHP
Raw Normal View History

2017-11-02 01:45:43 +00:00
<?php
namespace Pterodactyl\Tests\Unit\Http\Middleware;
2017-11-02 01:45:43 +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.
*/
public function setUp(): void
2017-11-02 01:45:43 +00:00
{
parent::setUp();
$this->buildRequestMock();
2017-11-02 01:45:43 +00:00
}
}