Skip to content

Commit

Permalink
Merge pull request #11519 from creative-commoners/pulls/6.0/broken-bu…
Browse files Browse the repository at this point in the history
…ilds3

MNT Fix unit test
  • Loading branch information
GuySartorelli authored Dec 19, 2024
2 parents 72f10d3 + 5a91951 commit 0edb872
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 !== Hierarchy::class) {
Group::remove_extension($extension);
}
}
Group::add_extension(TestTreeTitleExtension::class);
$group = new Group();
$group->Title = '<b>My group</b>';
Expand Down

0 comments on commit 0edb872

Please sign in to comment.