public function FeedsTamperWebTestHelper::disableTamperPlugin in Feeds Tamper 6
Same name and namespace in other branches
- 7 tests/feeds_tamper.test \FeedsTamperWebTestHelper::disableTamperPlugin()
3 calls to FeedsTamperWebTestHelper::disableTamperPlugin()
- FeedsTamperCSVTestCase::test in tests/
feeds_tamper.test - FeedsTamperUIWebTestCase::_testCSV in feeds_tamper_ui/
tests/ feeds_tamper_ui.test - FeedsTamperWebTestCase::testBasic in tests/
feeds_tamper.test
File
- tests/
feeds_tamper.test, line 71 - Tests for feeds_tamper.module.
Class
- FeedsTamperWebTestHelper
- Base class for Feeds Tamper tests.
Code
public function disableTamperPlugin($id) {
$plugin = feeds_tamper_load_instance($id);
$plugin->disabled = TRUE;
$this
->assertEqual(SAVED_UPDATED, feeds_tamper_save_instance($plugin));
// reload and test that changes were kept.
$plugin = feeds_tamper_load_instance($id);
$this
->assertIdentical(TRUE, $plugin->disabled);
}