@@ -89,15 +89,15 @@ public function test_routes_are_registered()
89
89
$ this ->assertTrue ($ router ->has ('oneofftech::connect.callback ' ));
90
90
91
91
$ routes = collect ($ router ->getRoutes ()->getRoutes ())->map (function ($ r ) {
92
- return $ r ->getActionName ();
92
+ return implode ( ' , ' , $ r -> methods ()). ' : ' . $ r ->getActionName ();
93
93
});
94
94
95
- $ this ->assertContains ('\App\Http\Controllers\Identities\Auth\LoginController@redirect ' , $ routes );
96
- $ this ->assertContains ('\App\Http\Controllers\Identities\Auth\LoginController@login ' , $ routes );
97
- $ this ->assertContains ('\App\Http\Controllers\Identities\Auth\RegisterController@redirect ' , $ routes );
98
- $ this ->assertContains ('\App\Http\Controllers\Identities\Auth\RegisterController@register ' , $ routes );
99
- $ this ->assertContains ('\App\Http\Controllers\Identities\Auth\ConnectController@redirect ' , $ routes );
100
- $ this ->assertContains ('\App\Http\Controllers\Identities\Auth\ConnectController@connect ' , $ routes );
95
+ $ this ->assertContains ('GET,POST,HEAD: \App\Http\Controllers\Identities\Auth\LoginController@redirect ' , $ routes );
96
+ $ this ->assertContains ('GET,HEAD: \App\Http\Controllers\Identities\Auth\LoginController@login ' , $ routes );
97
+ $ this ->assertContains ('GET,POST,HEAD: \App\Http\Controllers\Identities\Auth\RegisterController@redirect ' , $ routes );
98
+ $ this ->assertContains ('GET,HEAD: \App\Http\Controllers\Identities\Auth\RegisterController@register ' , $ routes );
99
+ $ this ->assertContains ('GET,POST,HEAD: \App\Http\Controllers\Identities\Auth\ConnectController@redirect ' , $ routes );
100
+ $ this ->assertContains ('GET,HEAD: \App\Http\Controllers\Identities\Auth\ConnectController@connect ' , $ routes );
101
101
}
102
102
103
103
public function test_events_are_registered ()
0 commit comments