You are here

private static function SerialTestCase::fieldName in Serial Field 7

Convert Drupal field name into HTML.

Parameters

string $name: Drupal field name.

string $column: Field column.

Return value

string HTML input name.

1 call to SerialTestCase::fieldName()
SerialTestCase::assertSerialField in tests/serial.test
Assert number with value of the serial field on the page.

File

tests/serial.test, line 124
Test Serial functionality.

Class

SerialTestCase
Class SerialTestCase.

Code

private static function fieldName($name, $column = 'value') {
  return $name . '[' . LANGUAGE_NONE . '][0][' . $column . ']';
}