Skip to content

Commit

Permalink
MNT Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 16, 2024
1 parent 41bf02c commit 8b2f7a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/php/GroupSubsitesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public function testAlternateTreeTitle()
$group = new Group();
$group->Title = 'The A Team';
$group->AccessAllSubsites = true;
$this->assertEquals('The A Team <i>(global group)</i>', $group->getTreeTitle());
$this->assertEquals('The A Team &lt;i&gt;(global group)&lt;/i&gt;', $group->getTreeTitle());

$group->AccessAllSubsites = false;
$group->write();

$group->Subsites()->add($this->objFromFixture(Subsite::class, 'domaintest1'));
$group->Subsites()->add($this->objFromFixture(Subsite::class, 'domaintest2'));
$this->assertEquals('The A Team <i>(Test 1, Test 2)</i>', $group->getTreeTitle());
$this->assertEquals('The A Team &lt;i&gt;(Test 1, Test 2)&lt;/i&gt;', $group->getTreeTitle());
}
}

0 comments on commit 8b2f7a2

Please sign in to comment.