protected function createKernel() { // Mocking of the kernel using the default router return $this->mock(Kernel::class, [$this->app, $this->app->make(Router::class)])->makePartial()->shouldAllowMockingProtectedMethods(); }