public function testItCallsMapOnInitialization() { $router = $this->createRouter(); $router->shouldReceive('map')->once(); // Manually initialize the class $router->__construct(app('router')); }