function ContentCrudTestCase::createRandomTextFieldData in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 tests/content.crud.test \ContentCrudTestCase::createRandomTextFieldData()
- 6 tests/content.crud.test \ContentCrudTestCase::createRandomTextFieldData()
Creates random values for a text field
Return value
An array containing a value key and a format key
2 calls to ContentCrudTestCase::createRandomTextFieldData()
File
- tests/
content.crud.test, line 218
Class
- ContentCrudTestCase
- Base class for CCK CRUD tests. Defines many helper functions useful for writing CCK CRUD tests.
Code
function createRandomTextFieldData() {
return array(
'value' => '!SimpleTest! test value' . $this
->randomName(60),
'format' => 2,
);
}