diff --git a/core/modules/edit/lib/Drupal/edit/Tests/EditTestBase.php b/core/modules/edit/lib/Drupal/edit/Tests/EditTestBase.php index e09a127..753745f 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/EditTestBase.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/EditTestBase.php @@ -19,7 +19,7 @@ class EditTestBase extends DrupalUnitTestBase { * * @var array */ - public static $modules = array('system', 'entity', 'entity_test', 'field', 'field_test', 'number', 'filter', 'user', 'text', 'edit'); + public static $modules = array('system', 'entity', 'entity_test', 'field', 'field_test', 'filter', 'user', 'text', 'edit'); /** * Sets the default field storage backend for fields created during tests. diff --git a/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php b/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php index d098761..edd1089 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php @@ -153,7 +153,7 @@ public function testTextWysiwyg() { public function testNumber() { $field_name = 'field_nr'; $this->createFieldWithInstance( - $field_name, 'number_integer', 1, 'Simple number field', + $field_name, 'integer', 1, 'Simple number field', // Instance settings. array(), // Widget type & settings. diff --git a/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php b/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php index af74f12..327fef9 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php @@ -83,7 +83,7 @@ public function testSimpleEntityType() { $field_2_name = 'field_nr'; $field_2_label = 'Simple number field'; $this->createFieldWithInstance( - $field_2_name, 'number_integer', 1, $field_2_label, + $field_2_name, 'integer', 1, $field_2_label, // Instance settings. array(), // Widget type & settings. diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php index ea75ff7..5adfdde 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryAggregateTest.php @@ -18,7 +18,7 @@ class EntityQueryAggregateTest extends EntityUnitTestBase { * * @var array */ - public static $modules = array('number'); + public static $modules = array(); /** * The entity_test storage controller to create the test entities. @@ -61,7 +61,7 @@ public function setUp() { entity_create('field_config', array( 'name' => $field_name, 'entity_type' => 'entity_test', - 'type' => 'number_integer', + 'type' => 'integer', 'cardinality' => 2, ))->save(); entity_create('field_instance_config', array( diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/FieldSqlStorageTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/FieldSqlStorageTest.php index ea24d9b..8894088 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/FieldSqlStorageTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/FieldSqlStorageTest.php @@ -26,7 +26,7 @@ class FieldSqlStorageTest extends EntityUnitTestBase { * * @var array */ - public static $modules = array('field', 'field_test', 'text', 'number', 'entity_test'); + public static $modules = array('field', 'field_test', 'text', 'entity_test'); /** * The name of the created field. @@ -300,7 +300,7 @@ function testUpdateFieldSchemaWithData() { $field = entity_create('field_config', array( 'name' => 'decimal52', 'entity_type' => $entity_type, - 'type' => 'number_decimal', + 'type' => 'decimal', 'settings' => array('precision' => 5, 'scale' => 2), )); $field->save(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php b/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php index 907741e..f9be8cb 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Module/DependencyTest.php @@ -125,10 +125,9 @@ function testModuleEnableOrder() { // - node depends on text // - text depends on filter // - taxonomy depends on options - // - options depends on number // - ban depends on xmlrpc (via module_test) // The correct enable order is: - $expected_order = array('filter', 'xmlrpc', 'ban', 'text', 'node', 'datetime', 'comment', 'history', 'number', 'options', 'taxonomy', 'forum'); + $expected_order = array('filter', 'xmlrpc', 'ban', 'text', 'node', 'datetime', 'comment', 'history', 'options', 'taxonomy', 'forum'); // Enable the modules through the UI, verifying that the dependency chain // is correct. @@ -136,20 +135,19 @@ function testModuleEnableOrder() { $edit['modules[Core][forum][enable]'] = 'forum'; $this->drupalPostForm('admin/modules', $edit, t('Save configuration')); $this->assertModules(array('forum'), FALSE); - $this->assertText(t('You must enable the Node, Text, Filter, History, Taxonomy, Options, Number, Comment, Datetime, Ban, XML-RPC modules to install Forum.')); + $this->assertText(t('You must enable the Node, Text, Filter, History, Taxonomy, Options, Comment, Datetime, Ban, XML-RPC modules to install Forum.')); $edit['modules[Core][node][enable]'] = 'node'; $edit['modules[Field types][text][enable]'] = 'text'; $edit['modules[Core][filter][enable]'] = 'filter'; $edit['modules[Core][history][enable]'] = 'history'; $edit['modules[Field types][options][enable]'] = 'options'; - $edit['modules[Field types][number][enable]'] = 'number'; $edit['modules[Core][taxonomy][enable]'] = 'taxonomy'; $edit['modules[Core][comment][enable]'] = 'comment'; $edit['modules[Field types][datetime][enable]'] = 'datetime'; $edit['modules[Core][ban][enable]'] = 'ban'; $edit['modules[Core][xmlrpc][enable]'] = 'xmlrpc'; $this->drupalPostForm('admin/modules', $edit, t('Save configuration')); - $this->assertModules(array('forum', 'ban', 'node', 'text', 'filter', 'xmlrpc', 'datetime', 'comment', 'history', 'taxonomy', 'options', 'number'), TRUE); + $this->assertModules(array('forum', 'ban', 'node', 'text', 'filter', 'xmlrpc', 'datetime', 'comment', 'history', 'taxonomy', 'options'), TRUE); // Check the actual order which is saved by module_test_modules_enabled(). $module_order = \Drupal::state()->get('module_test.install_order') ?: array(); diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermIndentationTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermIndentationTest.php index 5020cc2..a19542b 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermIndentationTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermIndentationTest.php @@ -62,7 +62,7 @@ function testTermIndentation() { // Move the second term back out to the root level. $edit = array( 'terms[tid:' . $term2->id() . ':0][term][tid]' => 2, - 'terms[tid:' . $term2->id() . ':0][term][parent]' => '', + 'terms[tid:' . $term2->id() . ':0][term][parent]' => 0, 'terms[tid:' . $term2->id() . ':0][term][depth]' => 0, 'terms[tid:' . $term2->id() . ':0][weight]' => 1, );