File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,6 @@ public function testSaveSettings()
52
52
$ response ->assertRedirect ();
53
53
54
54
$ this ->assertSame ('My Great Site ' , setting ('Site.siteName ' ));
55
- $ this ->assertTrue (setting ('Site.siteOnline ' ));
55
+ $ this ->assertTrue (setting ('Site.siteOnline ' ) === ' 1 ' );
56
56
}
57
57
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ protected function setUp(): void
36
36
37
37
public function testOnlySuperAdminWhenOff ()
38
38
{
39
- setting ('Site.siteOnline ' , false );
39
+ setting ('Site.siteOnline ' , null );
40
40
41
41
// Superadmin should be able to see the site
42
42
$ this ->actingAs ($ this ->admin )
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ public function testSiteOnline()
21
21
22
22
public function testSiteOffline ()
23
23
{
24
- setting ('Site.siteOnline ' , false );
24
+ setting ('Site.siteOnline ' , null );
25
25
$ response = $ this ->get ('/ ' );
26
26
27
27
$ response ->assertRedirectTo ('site-offline ' );
28
28
}
29
29
30
30
public function testSiteOfflineSuperAdmin ()
31
31
{
32
- setting ('Site.siteOnline ' , false );
32
+ setting ('Site.siteOnline ' , null );
33
33
34
34
$ user = $ this ->createUser ();
35
35
$ user ->addGroup ('superadmin ' );
You can’t perform that action at this time.
0 commit comments