Skip to content

Commit

Permalink
ENH Use class name instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 5, 2024
1 parent 8970ea9 commit 9f5dbbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/LumberjackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public function testGetExcludedSiteTreeClassNames()
$standard = $this->objFromFixture(LumberjackStub::class, 'standard');

$excluded = $standard->getExcludedSiteTreeClassNames();
$excluded = $this->filteredClassNames($excluded, self::$extra_dataobjects);
$excluded = $this->filteredClassNames($excluded, LumberjackTest::$extra_dataobjects);
$this->assertEquals($excluded, array(LumberjackHiddenStub::class => LumberjackHiddenStub::class));

Config::modify()->set(SiteTree::class, 'show_in_sitetree', false);
$excluded = $standard->getExcludedSiteTreeClassNames();
$excluded = $this->filteredClassNames($excluded, self::$extra_dataobjects);
$excluded = $this->filteredClassNames($excluded, LumberjackTest::$extra_dataobjects);
$this->assertEquals(
$excluded,
array(
Expand Down

0 comments on commit 9f5dbbe

Please sign in to comment.