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 19, 2024
1 parent 72f10d3 commit a16c883
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/php/ORM/HierarchyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,12 @@ public function testDefaultParent(string $class, ?string $defaultParentConfig, ?
*/
public function testGetTreeTitleExtension()
{
// Ensure no other extensions are applied which would change the expected result
foreach (Group::get_extensions() as $extension) {
if ($extension !== 'SilverStripe\ORM\Hierarchy\Hierarchy') {
Group::remove_extension($extension);
}
}
Group::add_extension(TestTreeTitleExtension::class);
$group = new Group();
$group->Title = '<b>My group</b>';
Expand Down

0 comments on commit a16c883

Please sign in to comment.