Laravel unit testing of controllers
问题 I am trying to start a new Laravel app following TDD My first step is to check that the /login controller is called on the home url. Despite following several tutorials I can't get the test to work and I can't see what I'm doing wrong at all. My set up is: composer to install laravel composer to install phpunit here is my route: <?php Route::get('/login', 'AuthenticationController@login'); my controller: <?php class AuthenticationController extends BaseController { public function login () {