Skip to content
Snippets Groups Projects
Commit a6c29cb6 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2406377 by benjy: Remove unnecessary $field_storage->status assertions from MigrateFieldTest

parent b1f378f5
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -53,7 +53,6 @@ public function testFields() { ...@@ -53,7 +53,6 @@ public function testFields() {
$field_storage = FieldStorageConfig::load('node.field_test'); $field_storage = FieldStorageConfig::load('node.field_test');
$expected = array('max_length' => 255); $expected = array('max_length' => 255);
$this->assertEqual($field_storage->type, "text", t('Field type is @fieldtype. It should be text.', array('@fieldtype' => $field_storage->type))); $this->assertEqual($field_storage->type, "text", t('Field type is @fieldtype. It should be text.', array('@fieldtype' => $field_storage->type)));
$this->assertEqual($field_storage->status(), TRUE, "Status is TRUE");
$this->assertEqual($field_storage->settings, $expected, "Field type text settings are correct"); $this->assertEqual($field_storage->settings, $expected, "Field type text settings are correct");
// Integer field. // Integer field.
...@@ -87,7 +86,6 @@ public function testFields() { ...@@ -87,7 +86,6 @@ public function testFields() {
// Date field. // Date field.
$field_storage = FieldStorageConfig::load('node.field_test_datetime'); $field_storage = FieldStorageConfig::load('node.field_test_datetime');
$this->assertEqual($field_storage->type, "datetime", t('Field type is @fieldtype. It should be datetime.', array('@fieldtype' => $field_storage->type))); $this->assertEqual($field_storage->type, "datetime", t('Field type is @fieldtype. It should be datetime.', array('@fieldtype' => $field_storage->type)));
$this->assertEqual($field_storage->status(), TRUE);
// Decimal field with radio buttons. // Decimal field with radio buttons.
$field_storage = FieldStorageConfig::load('node.field_test_decimal_radio_buttons'); $field_storage = FieldStorageConfig::load('node.field_test_decimal_radio_buttons');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment