Skip to content

Commit 024dcfb

Browse files
committed
Correct test
1 parent a7fb7dd commit 024dcfb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/SsoServiceProviderTest.php

+9-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function it_boots_the_service()
8080
->andReturn($this->router_mock);
8181

8282
$this->application_mock->shouldReceive('offsetGet')
83-
->twice()
83+
->times(3)
8484
->with('config')
8585
->andReturn($this->config_mock);
8686

@@ -89,6 +89,11 @@ public function it_boots_the_service()
8989
->once()
9090
->andReturn(['middleware']);
9191

92+
$this->config_mock->shouldReceive('get')
93+
->with('services.discourse.domain', null)
94+
->once()
95+
->andReturn('domain');
96+
9297
$this->config_mock->shouldReceive('get')
9398
->with('services.discourse.route')
9499
->once()
@@ -99,8 +104,9 @@ public function it_boots_the_service()
99104
[
100105
'route',
101106
[
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',
104110
],
105111
]
106112
)

0 commit comments

Comments
 (0)