summaryrefslogtreecommitdiff
path: root/modules/field/field.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-09 21:52:15 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-09 21:52:15 +0000
commitb6ad2af7c2a1acb0ea1f240b0650d667d19b0234 (patch)
tree2e9ba333f94583b1c369f49c96a77446eb7085f5 /modules/field/field.test
parenta7aab03a1e700c284e6e14e2dfa23f0b1f61a1d5 (diff)
downloadbrdo-b6ad2af7c2a1acb0ea1f240b0650d667d19b0234.tar.gz
brdo-b6ad2af7c2a1acb0ea1f240b0650d667d19b0234.tar.bz2
#371422 by catch: Field form tests should use drupal_strtolower().
Diffstat (limited to 'modules/field/field.test')
-rw-r--r--modules/field/field.test20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/field/field.test b/modules/field/field.test
index cb99571c3..416460908 100644
--- a/modules/field/field.test
+++ b/modules/field/field.test
@@ -15,7 +15,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
function setUp() {
parent::setUp('field_sql_storage', 'field', 'field_test');
- $this->field_name = strtolower($this->randomName(). '_field_name');
+ $this->field_name = drupal_strtolower($this->randomName(). '_field_name');
$this->table = _field_sql_storage_tablename($this->field_name);
$this->revision_table = _field_sql_storage_revision_tablename($this->field_name);
$this->field = array('field_name' => $this->field_name, 'type' => 'test_field', 'cardinality' => 4);
@@ -371,7 +371,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
function testFieldAttachCreateRenameBundle() {
// Create a new bundle. This has to be initiated by the module so that its
// hook_fieldable_info() is consistent.
- $new_bundle = 'test_bundle_' . strtolower($this->randomName());
+ $new_bundle = 'test_bundle_' . drupal_strtolower($this->randomName());
field_test_create_bundle($new_bundle, $this->randomName());
// Add an instance to that bundle.
@@ -395,7 +395,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
// Rename the bundle. This has to be initiated by the module so that its
// hook_fieldable_info() is consistent.
- $new_bundle = 'test_bundle_' . strtolower($this->randomName());
+ $new_bundle = 'test_bundle_' . drupal_strtolower($this->randomName());
field_test_rename_bundle($this->instance['bundle'], $new_bundle);
// Check that the instance definition has been updated.
@@ -411,7 +411,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
function testFieldAttachDeleteBundle() {
// Create a new bundle. This has to be initiated by the module so that its
// hook_fieldable_info() is consistent.
- $new_bundle = 'test_bundle_' . strtolower($this->randomName());
+ $new_bundle = 'test_bundle_' . drupal_strtolower($this->randomName());
field_test_create_bundle($new_bundle, $this->randomName());
// Add an instance to that bundle.
@@ -419,7 +419,7 @@ class FieldAttachTestCase extends DrupalWebTestCase {
field_create_instance($this->instance);
// Create a second field for the test bundle
- $field_name = strtolower($this->randomName(). '_field_name');
+ $field_name = drupal_strtolower($this->randomName(). '_field_name');
$table = _field_sql_storage_tablename($field_name);
$revision_table = _field_sql_storage_revision_tablename($field_name);
$field = array('field_name' => $field_name, 'type' => 'test_field', 'cardinality' => 1);
@@ -655,7 +655,7 @@ class FieldInfoTestCase extends DrupalWebTestCase {
// Create a field, verify it shows up.
$field = array(
- 'field_name' => strtolower($this->randomName()),
+ 'field_name' => drupal_strtolower($this->randomName()),
'type' => 'test_field',
);
field_create_field($field);
@@ -725,9 +725,9 @@ class FieldFormTestCase extends DrupalWebTestCase {
$web_user = $this->drupalCreateUser(array('access field_test content', 'administer field_test content'));
$this->drupalLogin($web_user);
- $this->field_single = array('field_name' => strtolower($this->randomName(). '_field_name'), 'type' => 'test_field');
- $this->field_multiple = array('field_name' => strtolower($this->randomName(). '_field_name'), 'type' => 'test_field', 'cardinality' => 4);
- $this->field_unlimited = array('field_name' => strtolower($this->randomName(). '_field_name'), 'type' => 'test_field', 'cardinality' => FIELD_CARDINALITY_UNLIMITED);
+ $this->field_single = array('field_name' => drupal_strtolower($this->randomName(). '_field_name'), 'type' => 'test_field');
+ $this->field_multiple = array('field_name' => drupal_strtolower($this->randomName(). '_field_name'), 'type' => 'test_field', 'cardinality' => 4);
+ $this->field_unlimited = array('field_name' => drupal_strtolower($this->randomName(). '_field_name'), 'type' => 'test_field', 'cardinality' => FIELD_CARDINALITY_UNLIMITED);
$this->instance = array(
'bundle' => 'test_bundle',
@@ -939,7 +939,7 @@ class FieldTestCase extends DrupalWebTestCase {
*/
function testCreateField() {
$field_definition = array(
- 'field_name' => strtolower($this->randomName()),
+ 'field_name' => drupal_strtolower($this->randomName()),
'type' => 'test_field',
);
field_create_field($field_definition);