protected function FeedsTamperWebTestHelper::disableTamperPlugin in Feeds Tamper 7
Same name and namespace in other branches
- 6 tests/feeds_tamper.test \FeedsTamperWebTestHelper::disableTamperPlugin()
3 calls to FeedsTamperWebTestHelper::disableTamperPlugin()
- FeedsTamperCSVTestCase::test in tests/
feeds_tamper.test - FeedsTamperWebTestCase::testBasic in tests/
feeds_tamper.test - FeedsTamperWebTestCase::testCopyPlugin in tests/
feeds_tamper.test - Integration tests for the copy plugin.
File
- tests/
feeds_tamper.test, line 79 - Tests for feeds_tamper.module.
Class
- FeedsTamperWebTestHelper
- Base class for Feeds Tamper tests.
Code
protected 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);
}