Commit 374e41d6 authored by catch's avatar catch

Issue #1294284 by Chi: Code style fix for field_ui().test.

parent 03b443e8
...@@ -26,7 +26,7 @@ class FieldUITestCase extends DrupalWebTestCase { ...@@ -26,7 +26,7 @@ class FieldUITestCase extends DrupalWebTestCase {
$this->drupalLogin($admin_user); $this->drupalLogin($admin_user);
// Create content type, with underscores. // Create content type, with underscores.
$type_name = strtolower($this->randomName(8)) . '_' .'test'; $type_name = strtolower($this->randomName(8)) . '_test';
$type = $this->drupalCreateContentType(array('name' => $type_name, 'type' => $type_name)); $type = $this->drupalCreateContentType(array('name' => $type_name, 'type' => $type_name));
$this->type = $type->type; $this->type = $type->type;
// Store a valid URL name, with hyphens instead of underscores. // Store a valid URL name, with hyphens instead of underscores.
...@@ -343,7 +343,7 @@ class FieldUIManageFieldsTestCase extends FieldUITestCase { ...@@ -343,7 +343,7 @@ class FieldUIManageFieldsTestCase extends FieldUITestCase {
$this->fieldUIAddNewField($bundle_path1, $edit1); $this->fieldUIAddNewField($bundle_path1, $edit1);
// Create an additional node type. // Create an additional node type.
$type_name2 = strtolower($this->randomName(8)) . '_' .'test'; $type_name2 = strtolower($this->randomName(8)) . '_test';
$type2 = $this->drupalCreateContentType(array('name' => $type_name2, 'type' => $type_name2)); $type2 = $this->drupalCreateContentType(array('name' => $type_name2, 'type' => $type_name2));
$type_name2 = $type2->type; $type_name2 = $type2->type;
$hyphen_type2 = str_replace('_', '-', $type_name2); $hyphen_type2 = str_replace('_', '-', $type_name2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment