mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-11 19:03:46 +02:00
tests: cleanup unneeded code
This commit is contained in:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user