You are here

protected function ViewsRulesBaseTestCase::getFileContents in Views Rules 7

Retrieves a file in the test directory.

3 calls to ViewsRulesBaseTestCase::getFileContents()
ViewsRulesViewLoopTestCase::testExport in tests/views_rules.test
Tests exporting a view loop.
ViewsRulesViewLoopTestCase::testImport in tests/views_rules.test
Tests importing a view loop.
ViewsRulesViewLoopTestCase::testImportInvalidDisplay in tests/views_rules.test
Tests importing a view loop for an invalid display.

File

tests/views_rules.test, line 40
Simpletest implementations.

Class

ViewsRulesBaseTestCase
Base test for Views Rules.

Code

protected function getFileContents($fileName) {
  $filePath = drupal_get_path('module', 'views_rules_test') . '/' . $fileName;
  return file_get_contents($filePath);
}