Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Fix PHPUnit breaking bug caused by 'CheckboxSetFieldTest_Tag' having …
Browse files Browse the repository at this point in the history
…'tag' in the class name. Resolved by ignoring classes with 'TestOnly' interface.
  • Loading branch information
silbinarywolf authored and Nathan committed Apr 7, 2016
1 parent 1d57cad commit f705099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/services/FusionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getFusionTagTypes() {

// Determine the tag types to consolidate, based on data objects ending with "Tag".

if((strpos(strrev($class), strrev('Tag')) === 0)) {
if((strpos(strrev($class), strrev('Tag')) === 0) && !ClassInfo::classImplements($class, 'TestOnly')) {

// Use the title field as a default.

Expand Down

0 comments on commit f705099

Please sign in to comment.