tests: cleanup unneeded code
This commit is contained in:
parent
64110d84af
commit
08c780c388
1 changed files with 1 additions and 2 deletions
|
@ -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.');
|
||||||
|
|
Loading…
Reference in a new issue