You are here

function dfpBaseTest::editTag in Doubleclick for Publishers (DFP) 7

Same name and namespace in other branches
  1. 7.2 tests/dfp.test \dfpBaseTest::editTag()

Edit a given tag specified by $machinename with the given values.

4 calls to dfpBaseTest::editTag()
dfpDisplayTagTest::testDisplayTagWithMapping in tests/dfp_display_tag.test
dfpDisplayTagTest::testSlug in tests/dfp_display_tag.test
dfpDisplayTagTest::testTargeting in tests/dfp_display_tag.test
dfpTokensTest::testUrlPartsToken in tests/dfp_tokens.test

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;
}