Skip to content

Commit

Permalink
Merge pull request #131 from creative-commoners/pulls/3.0/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 16, 2024
2 parents a8c740d + bddbf30 commit 437b7de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/AtomFeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ protected function setUp(): void
{
parent::setUp();
Config::modify()->set(Director::class, 'alternate_base_url', '/');
if (!self::$original_host) {
self::$original_host = $_SERVER['HTTP_HOST'];
if (!AtomFeedTest::$original_host) {
AtomFeedTest::$original_host = $_SERVER['HTTP_HOST'];
}
$_SERVER['HTTP_HOST'] = 'www.example.org';
}
Expand All @@ -75,6 +75,6 @@ protected function tearDown(): void
{
parent::tearDown();
Config::modify()->set(Director::class, 'alternate_base_url', null);
$_SERVER['HTTP_HOST'] = self::$original_host;
$_SERVER['HTTP_HOST'] = AtomFeedTest::$original_host;
}
}

0 comments on commit 437b7de

Please sign in to comment.