public function ViewsRulesViewLoopTestCase::testExport in Views Rules 7
Tests exporting a view loop.
File
- tests/
views_rules.test, line 257 - Simpletest implementations.
Class
- ViewsRulesViewLoopTestCase
- Rules plugin tests.
Code
public function testExport() {
$comp = $this
->createTestComponent();
$comp->name = 'view_loop_test';
$export = $this
->getFileContents('view_loop_test.export.txt');
$this
->assertEqual($export, $comp
->export(), 'View loop exports correctly.');
$this
->assertTrue(in_array('views_rules', $comp
->dependencies()), 'View loop depends on Views Rules.');
}