You are here

function ContentCrudTestCase::createRandomTextFieldData in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 tests/content.crud.test \ContentCrudTestCase::createRandomTextFieldData()
  2. 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()
ContentCrudMultipleToSingleTest::testMultipleToSingle in tests/content.crud.test
ContentCrudSingleToMultipleTest::testSingleToMultiple in tests/content.crud.test

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