Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed May 10, 2024
1 parent 482c57e commit ac6e626
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Data/Taxonomies/TaxonomyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,11 @@ public function if_saving_event_returns_false_the_taxonomy_doesnt_save()
/** @test */
public function it_gets_and_sets_the_routes()
{
Site::setConfig(['sites' => [
$this->setSites([
'en' => ['url' => 'http://domain.com/'],
'fr' => ['url' => 'http://domain.com/fr/'],
'de' => ['url' => 'http://domain.com/de/'],
]]);
]);

// A taxonomy with no sites uses the default site.
$taxonomy = new Taxonomy;
Expand Down Expand Up @@ -436,11 +436,11 @@ public function it_gets_and_sets_the_routes()
/** @test */
public function it_sets_all_the_routes_identically()
{
Site::setConfig(['sites' => [
$this->setSites([
'en' => ['url' => 'http://domain.com/'],
'fr' => ['url' => 'http://domain.com/fr/'],
'de' => ['url' => 'http://domain.com/de/'],
]]);
]);

$taxonomy = (new Taxonomy)->sites(['en', 'fr']);

Expand Down

0 comments on commit ac6e626

Please sign in to comment.