Skip to content

Commit

Permalink
Merge pull request #152 from creative-commoners/pulls/3.1/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 17, 2024
2 parents 37752d8 + 9f5dbbe commit aa22988
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 aa22988

Please sign in to comment.