mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +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.
|
* 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);
|
$this->request = m::mock($this->requestMockClass);
|
||||||
if (!$this->request instanceof Request) {
|
if (!$this->request instanceof Request) {
|
||||||
throw new InvalidArgumentException('Request mock class must be an instance of ' . Request::class . ' when mocked.');
|
throw new InvalidArgumentException('Request mock class must be an instance of ' . Request::class . ' when mocked.');
|
||||||
|
|||||||
Reference in New Issue
Block a user