protected function createRouter() { // Create a basic router and implement the map method. // makePartial() prevents the constructor from being called. return $this->mock(Router::class, [null => null])->makePartial(); }