You are here

protected function TitleTranslationTestCase::editValues in Title 7

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

1 call to TitleTranslationTestCase::editValues()
TitleTranslationTestCase::testFormTranslationWorkflow in tests/TitleTranslationTestCase.test
Tests taxonomy form translation workflow.

File

tests/TitleTranslationTestCase.test, line 257

Class

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