diff --git a/tests/BaseTestCase.php b/tests/BaseTestCase.php index ecf1f21..4c70524 100644 --- a/tests/BaseTestCase.php +++ b/tests/BaseTestCase.php @@ -74,7 +74,7 @@ protected function getEnvironmentSetUp($app) $app['config']->set('statamic.sites', [ 'default' => 'en', 'sites' => [ - 'en' => ['name' => 'English', 'locale' => 'en_US', 'url' => 'http://localhost/'], + 'default' => ['name' => 'English', 'locale' => 'en_US', 'url' => 'http://localhost/'], ], ]); $app['config']->set('auth.providers.users.driver', 'statamic'); diff --git a/tests/Factories/EntryFactory.php b/tests/Factories/EntryFactory.php index 6d59e42..e1e666f 100644 --- a/tests/Factories/EntryFactory.php +++ b/tests/Factories/EntryFactory.php @@ -104,17 +104,6 @@ public function create() return tap($this->make())->save(); } - private function getLocale() - { - $version = Statamic::version(); - - if (Str::startsWith($version, '5')) { - return 'default'; - } - - return 'en'; - } - protected function createCollection() { if ($this->collection instanceof StatamicCollection) { @@ -123,7 +112,7 @@ protected function createCollection() return Collection::findByHandle($this->collection) ?? Collection::make($this->collection) - ->sites([$this->getLocale()]) + ->sites(['default']) ->save(); } @@ -135,7 +124,7 @@ private function reset() $this->data = []; $this->published = true; $this->order = null; - $this->locale = $this->getLocale(); + $this->locale = 'default'; $this->origin = null; $this->collection = null; }