Skip to content

Commit f0d81e7

Browse files
author
github-actions
committed
Merge pull request #243 from hydephp/Set-default-site-URL-to-localhost-instead-of-null
Set default site URL to localhost instead of null hydephp/develop@f03efaf
1 parent e2c7338 commit f0d81e7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/Feature/Commands/HydeBuildSitemapCommandTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function test_sitemap_returns_helpful_error_message_when_sitemap_generati
6767

6868
public function test_sitemap_returns_helpful_error_message_when_simplexml_is_not_installed()
6969
{
70+
config(['site.site_url' => null]);
7071
config(['testing.mock_disabled_extensions' => true]);
7172

7273
$this->artisan('build:sitemap')

tests/Feature/Concerns/GeneratesPageMetadataTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ class GeneratesPageMetadataTest extends TestCase
2020

2121
protected bool $forceOpenGraph = true;
2222

23+
protected function setUp(): void
24+
{
25+
parent::setUp();
26+
27+
Config::set('site.site_url', null);
28+
}
29+
2330
protected function tearDown(): void
2431
{
2532
unset($this->metadata);

0 commit comments

Comments
 (0)