Skip to content

Commit

Permalink
Another take
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed May 13, 2024
1 parent eb98726 commit 24e7ac6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Statamic\Extend\Manifest;
use Statamic\Facades\File;
use Statamic\Facades\YAML;
use Statamic\Facades\Site;

abstract class TestCase extends \Orchestra\Testbench\TestCase
{
Expand All @@ -22,17 +23,16 @@ protected function setUp(): void
$this->preventSavingStacheItemsToDisk();
}

dd(resource_path('sites.yaml'));

// We changed the default sites setup but the tests assume defaults like the following.
File::put(resource_path('sites.yaml'), YAML::dump([
File::put(resource_path('sites.yaml'), YAML::dump($sites = [
'en' => [
'name' => 'English',
'url' => 'http://localhost/',
'locale' => 'en_US',
'lang' => 'en',
],
]));

Site::setSites($sites);
}

public function tearDown(): void
Expand Down

0 comments on commit 24e7ac6

Please sign in to comment.