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

23 lines
550 B
PHP

<?php
namespace Tests\Unit\Http\Middleware;
use Tests\TestCase;
use Tests\Traits\Http\RequestMockHelpers;
use Tests\Traits\Http\MocksMiddlewareClosure;
use Tests\Assertions\MiddlewareAttributeAssertionsTrait;
abstract class MiddlewareTestCase extends TestCase
{
use MiddlewareAttributeAssertionsTrait, MocksMiddlewareClosure, RequestMockHelpers;
/**
* Setup tests with a mocked request object and normal attributes.
*/
public function setUp(): void
{
parent::setUp();
$this->buildRequestMock();
}
}