Am I mock too much or doing TDD and unit testing the right way?
问题 I'm developing web application by using Laravel and this web app has to connect to internal service. I choose to do TDD in this project and now I'm facing with problem about too much dependencies to mock. In RegisterController , we allow user to login and upgrade their account type, see code below: public function loginForUpgradeAccount() { $data = Input::only('email', 'hashedPassword'); if (!empty($data['email']) && !empty($data['hashedPassword'])) { $email = $data['email']; $hashedPassword