File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function it_boots_the_service()
80
80
->andReturn ($ this ->router_mock );
81
81
82
82
$ this ->application_mock ->shouldReceive ('offsetGet ' )
83
- ->twice ( )
83
+ ->times ( 3 )
84
84
->with ('config ' )
85
85
->andReturn ($ this ->config_mock );
86
86
@@ -89,6 +89,11 @@ public function it_boots_the_service()
89
89
->once ()
90
90
->andReturn (['middleware ' ]);
91
91
92
+ $ this ->config_mock ->shouldReceive ('get ' )
93
+ ->with ('services.discourse.domain ' , null )
94
+ ->once ()
95
+ ->andReturn ('domain ' );
96
+
92
97
$ this ->config_mock ->shouldReceive ('get ' )
93
98
->with ('services.discourse.route ' )
94
99
->once ()
@@ -99,8 +104,9 @@ public function it_boots_the_service()
99
104
[
100
105
'route ' ,
101
106
[
102
- 'uses ' => 'Spinen\Discourse\Controllers\SsoController@login ' ,
103
- 'as ' => 'sso.login ' ,
107
+ 'as ' => 'sso.login ' ,
108
+ 'domain ' => 'domain ' ,
109
+ 'uses ' => 'Spinen\Discourse\Controllers\SsoController@login ' ,
104
110
],
105
111
]
106
112
)
You can’t perform that action at this time.
0 commit comments