public function testShowReturnsViewInstance() { $currentUser = Factory::create('App\\User'); $otherUser = Factory::create('App\\User'); $feeds = Factory::times(15)->create('App\\Feed', ['user_id' => $otherUser->id]); Auth::login($currentUser); $userController = new UserController($currentUser); $userRepository = new EloquentUserRepository(); $feedRepository = new EloquentFeedRepository(); $response = $userController->show($otherUser->id, $userRepository, $feedRepository); $this->assertInstanceOf('Illuminate\\View\\View', $response); }