Skip to content

Commit 8f7ea26

Browse files
committed
Not all tests require multisite.
1 parent b814bfe commit 8f7ea26

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

tests/Data/Globals/VariablesTest.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@
1919

2020
class VariablesTest extends TestCase
2121
{
22-
public function setUp(): void
23-
{
24-
parent::setUp();
25-
26-
$this->setSites([
27-
'a' => ['url' => '/', 'locale' => 'en'],
28-
'b' => ['url' => '/b/', 'locale' => 'fr'],
29-
'c' => ['url' => '/b/', 'locale' => 'fr'],
30-
'd' => ['url' => '/d/', 'locale' => 'fr'],
31-
]);
32-
}
33-
3422
#[Test]
3523
public function it_gets_file_contents_for_saving()
3624
{
@@ -56,6 +44,13 @@ public function it_gets_file_contents_for_saving()
5644
#[Test]
5745
public function it_gets_file_contents_for_saving_a_localized_set()
5846
{
47+
$this->setSites([
48+
'a' => ['url' => '/', 'locale' => 'en'],
49+
'b' => ['url' => '/b/', 'locale' => 'fr'],
50+
'c' => ['url' => '/b/', 'locale' => 'fr'],
51+
'd' => ['url' => '/d/', 'locale' => 'fr'],
52+
]);
53+
5954
$global = GlobalSet::make('test')->sites([
6055
'a' => null,
6156
'b' => 'a',
@@ -120,6 +115,13 @@ public function it_gets_file_contents_for_saving_a_localized_set()
120115
#[Test]
121116
public function if_the_value_is_explicitly_set_to_null_then_it_should_not_fall_back()
122117
{
118+
$this->setSites([
119+
'a' => ['url' => '/', 'locale' => 'en'],
120+
'b' => ['url' => '/b/', 'locale' => 'fr'],
121+
'c' => ['url' => '/b/', 'locale' => 'fr'],
122+
'd' => ['url' => '/d/', 'locale' => 'fr'],
123+
]);
124+
123125
$global = GlobalSet::make('test')->sites([
124126
'a' => null,
125127
'b' => 'a',

0 commit comments

Comments
 (0)