function dfpBaseTest::editTag in Doubleclick for Publishers (DFP) 7
Same name and namespace in other branches
- 7.2 tests/dfp.test \dfpBaseTest::editTag()
Edit a given tag specified by $machinename with the given values.
4 calls to dfpBaseTest::editTag()
File
- tests/
dfp_base.test, line 90 - Base test file for DFP module.
Class
- dfpBaseTest
- @file Base test file for DFP module.
Code
function editTag($machinename, &$edit) {
// Make sure there is no machinename set when we are editing.
if (isset($edit['machinename'])) {
unset($edit['machinename']);
}
$this
->drupalPost('admin/structure/dfp_ads/list/' . $machinename . '/edit', $edit, t('Save'));
$tag = dfp_tag_load($machinename);
return $tag;
}