diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php index 083fd8d..4fa5105 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php @@ -248,95 +248,77 @@ public function testGetSchemaBase() { 'description' => 'The base table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'serial', 'not null' => TRUE, ), 'name' => array( - 'description' => 'The name field.', 'type' => 'varchar', 'length' => 255, 'not null' => FALSE, ), 'description__value' => array( - 'description' => 'The description field.', 'type' => 'text', 'not null' => FALSE, ), 'description__format' => array( - 'description' => 'The description field.', 'type' => 'varchar', 'not null' => FALSE, ), 'uuid' => array( - 'description' => 'The uuid field.', 'type' => 'varchar', 'length' => 128, 'not null' => FALSE, ), 'hash' => array( - 'description' => 'The hash field.', 'type' => 'varchar', 'length' => 20, 'not null' => FALSE, ), 'email__username' => array( - 'description' => 'The email field.', 'type' => 'varchar', 'not null' => FALSE, ), 'email__hostname' => array( - 'description' => 'The email field.', 'type' => 'varchar', 'not null' => FALSE, ), 'email__domain' => array( - 'description' => 'The email field.', 'type' => 'varchar', 'not null' => FALSE, ), 'owner' => array( - 'description' => 'The owner field.', 'type' => 'int', 'not null' => FALSE, ), 'translator' => array( - 'description' => 'The translator field.', 'type' => 'int', 'not null' => FALSE, ), 'location__country' => array( - 'description' => 'The location field.', 'type' => 'varchar', 'not null' => FALSE, ), 'location__state' => array( - 'description' => 'The location field.', 'type' => 'varchar', 'not null' => FALSE, ), 'location__city' => array( - 'description' => 'The location field.', 'type' => 'varchar', 'not null' => FALSE, ), 'editor' => array( - 'description' => 'The editor field.', 'type' => 'int', 'not null' => FALSE, ), 'editor_revision__target_id' => array( - 'description' => 'The editor_revision field.', 'type' => 'int', 'not null' => FALSE, ), 'editor_revision__target_revision_id' => array( - 'description' => 'The editor_revision field.', 'type' => 'int', 'not null' => FALSE, ), 'long_index_name' => array( - 'description' => 'The long_index_name field.', 'type' => 'int', 'not null' => FALSE, ), @@ -439,12 +421,10 @@ public function testGetSchemaRevisionable() { 'description' => 'The base table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'serial', 'not null' => TRUE, ), 'revision_id' => array( - 'description' => 'The revision_id field.', 'type' => 'int', 'not null' => FALSE, ) @@ -465,12 +445,10 @@ public function testGetSchemaRevisionable() { 'description' => 'The revision table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'int', 'not null' => TRUE, ), 'revision_id' => array( - 'description' => 'The revision_id field.', 'type' => 'serial', 'not null' => TRUE, ), @@ -538,12 +516,10 @@ public function testGetSchemaTranslatable() { 'description' => 'The base table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'serial', 'not null' => TRUE, ), 'langcode' => array( - 'description' => 'The langcode field.', 'type' => 'varchar', 'not null' => TRUE, ) @@ -557,12 +533,10 @@ public function testGetSchemaTranslatable() { 'description' => 'The data table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'int', 'not null' => TRUE, ), 'langcode' => array( - 'description' => 'The langcode field.', 'type' => 'varchar', 'not null' => TRUE, ), @@ -645,17 +619,14 @@ public function testGetSchemaRevisionableTranslatable() { 'description' => 'The base table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'serial', 'not null' => TRUE, ), 'revision_id' => array( - 'description' => 'The revision_id field.', 'type' => 'int', 'not null' => FALSE, ), 'langcode' => array( - 'description' => 'The langcode field.', 'type' => 'varchar', 'not null' => TRUE, ) @@ -676,17 +647,14 @@ public function testGetSchemaRevisionableTranslatable() { 'description' => 'The revision table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'int', 'not null' => TRUE, ), 'revision_id' => array( - 'description' => 'The revision_id field.', 'type' => 'serial', 'not null' => TRUE, ), 'langcode' => array( - 'description' => 'The langcode field.', 'type' => 'varchar', 'not null' => TRUE, ), @@ -707,17 +675,14 @@ public function testGetSchemaRevisionableTranslatable() { 'description' => 'The data table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'int', 'not null' => TRUE, ), 'revision_id' => array( - 'description' => 'The revision_id field.', 'type' => 'int', 'not null' => TRUE, ), 'langcode' => array( - 'description' => 'The langcode field.', 'type' => 'varchar', 'not null' => TRUE, ), @@ -738,17 +703,14 @@ public function testGetSchemaRevisionableTranslatable() { 'description' => 'The revision data table for entity_test entities.', 'fields' => array( 'id' => array( - 'description' => 'The id field.', 'type' => 'int', 'not null' => TRUE, ), 'revision_id' => array( - 'description' => 'The revision_id field.', 'type' => 'int', 'not null' => TRUE, ), 'langcode' => array( - 'description' => 'The langcode field.', 'type' => 'varchar', 'not null' => TRUE, ), diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php index e90d145..ec24b1a 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php @@ -324,7 +324,6 @@ public function testOnEntityTypeCreate() { 'fields' => array( 'id' => array( 'type' => 'serial', - 'description' => NULL, 'not null' => TRUE, ), ),