protected function RulesConditionalBaseTestCase::getFileContents in Conditional Rules 7
Same name and namespace in other branches
- 8 tests/rules_conditional.test \RulesConditionalBaseTestCase::getFileContents()
Retrieves a file in the test directory.
8 calls to RulesConditionalBaseTestCase::getFileContents()
- RuleConditionSetTestCase::testExport in tests/
rules_conditional.test - Tests exporting.
- RuleConditionSetTestCase::testImport in tests/
rules_conditional.test - Tests importing.
- RulesConditionalSwitchTestCase::testExport in tests/
rules_conditional.test - Tests exporting.
- RulesConditionalSwitchTestCase::testImport in tests/
rules_conditional.test - Tests importing.
- RulesConditionalTestCase::testExport in tests/
rules_conditional.test - Tests exporting.
File
- tests/
rules_conditional.test, line 35 - SimpleTest testing suites.
Class
- RulesConditionalBaseTestCase
- Base class for conditional rules testing.
Code
protected function getFileContents($fileName) {
$filePath = drupal_get_path('module', 'rules_conditional_test') . '/' . $fileName;
return file_get_contents($filePath);
}