You are here

protected function DraftyTitleTestCase::editValues in Drafty 7

Returns the drupalPost() $edit array corresponding to the given values.

File

tests/DraftyTitleTestCase.test, line 201

Class

DraftyTitleTestCase
Tests for legacy field replacement.

Code

protected function editValues($values, $langcode) {
  $edit = array();
  foreach ($values as $name => $value) {
    $edit["{$name}_field[{$langcode}][0][value]"] = $value;
  }
  return $edit;
}