-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7af040c
commit d45fdad
Showing
2 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/** | ||
* Helper class to simulate a report form but allow us access to some protected | ||
* fields for tests. | ||
* There's an argument that you shouldn't be testing against internal fields | ||
* and that the getters in here should either be part of the real class or | ||
* there should be some other public output to test against, but for the | ||
* purposes of refactoring something like a big if/else block this is helpful | ||
* to ensure the same before and after, and it's easier to remove this test | ||
* class later if needed than stuff in the real class. | ||
*/ | ||
class CRM_Report_Form_SampleForm extends CRM_Report_Form_Contribute_Summary { | ||
|
||
public function getOutputMode():string { | ||
return $this->_outputMode; | ||
} | ||
|
||
public function getAddPaging():bool { | ||
return $this->addPaging; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters