| 7 dblog.test | private DBLogTestCase::getContentUpdate($type) |
| 8 dblog.test | private DBLogTestCase::getContentUpdate($type) |
Create content update based on content type.
Parameters
string $type Content type.:
Return value
array Content.
File
- modules/
dblog/ dblog.test, line 358 - Tests for dblog.module.
Code
private function getContentUpdate($type) {
switch ($type) {
case 'poll':
$content = array(
'choice[chid:1][chtext]' => $this->randomName(32),
'choice[chid:2][chtext]' => $this->randomName(32),
);
break;
default:
$langcode = LANGUAGE_NONE;
$content = array(
"body[$langcode][0][value]" => $this->randomName(32),
);
break;
}
return $content;
}
Login or register to post comments