protected function mockCache() { Services::
injectMock('cache',
new MockCache());
} /**
* Injects the mock email driver so no emails really send
*/
protected function mockEmail() { Services::
injectMock('email',
new MockEmail(config(Email::
class)));
} /**
* Injects the mock session driver into Services
*/
protected function mockSession() { $_SESSION =
[];
$config =
config(Session::
class);
$session =
new MockSession(new ArrayHandler($config, '0.0.0.0'
),
$config);