forked from Alex/Pterodactyl-Panel
tests: cleanup unneeded code
This commit is contained in:
parent
64110d84af
commit
08c780c388
@ -71,9 +71,8 @@ trait RequestMockHelpers
|
||||
/**
|
||||
* Set the active request object to be an instance of a mocked request.
|
||||
*/
|
||||
protected function buildRequestMock($uri = '/')
|
||||
protected function buildRequestMock()
|
||||
{
|
||||
// $this->request = Request::create($uri);
|
||||
$this->request = m::mock($this->requestMockClass);
|
||||
if (!$this->request instanceof Request) {
|
||||
throw new InvalidArgumentException('Request mock class must be an instance of ' . Request::class . ' when mocked.');
|
||||
|
Loading…
Reference in New Issue
Block a user