diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedParserTest.php b/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedParserTest.php index 96ee61f..5d4199f 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedParserTest.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedParserTest.php @@ -87,7 +87,7 @@ function testHtmlEntitiesSample() { function testRedirectFeed() { // Simulate a typo in the URL to force a curl exception. $invalid_url = url('aggregator/redirect', array('absolute' => TRUE)); - $feed = entity_create('aggregator_feed', array('url' => $invalid_url)); + $feed = entity_create('aggregator_feed', array('url' => $invalid_url, 'title' => $this->randomName())); $feed->save(); $feed->refreshItems(); diff --git a/core/modules/comment/lib/Drupal/comment/CommentStorage.php b/core/modules/comment/lib/Drupal/comment/CommentStorage.php index 0246f73..5526d2b 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentStorage.php +++ b/core/modules/comment/lib/Drupal/comment/CommentStorage.php @@ -138,7 +138,6 @@ public function getSchema() { $schema['comment']['fields']['pid']['not null'] = TRUE; $schema['comment']['fields']['status']['not null'] = TRUE; $schema['comment']['fields']['entity_id']['not null'] = TRUE; - $schema['comment']['fields']['entity_type']['not null'] = TRUE; $schema['comment']['fields']['field_id']['not null'] = TRUE; $schema['comment']['fields']['created']['not null'] = TRUE; $schema['comment']['fields']['thread']['not null'] = TRUE; diff --git a/core/modules/forum/lib/Drupal/forum/Tests/Views/ForumIntegrationTest.php b/core/modules/forum/lib/Drupal/forum/Tests/Views/ForumIntegrationTest.php index 65d9f1b..6e40370 100644 --- a/core/modules/forum/lib/Drupal/forum/Tests/Views/ForumIntegrationTest.php +++ b/core/modules/forum/lib/Drupal/forum/Tests/Views/ForumIntegrationTest.php @@ -51,7 +51,7 @@ protected function setUp() { public function testForumIntegration() { // Create a forum. $entity_manager = $this->container->get('entity.manager'); - $term = $entity_manager->getStorage('taxonomy_term')->create(array('vid' => 'forums')); + $term = $entity_manager->getStorage('taxonomy_term')->create(array('vid' => 'forums', 'name' => $this->randomName())); $term->save(); $comment_storage = $entity_manager->getStorage('comment'); diff --git a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateFieldInstanceTest.php b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateFieldInstanceTest.php index c6ad455..14014e2 100644 --- a/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateFieldInstanceTest.php +++ b/core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateFieldInstanceTest.php @@ -140,7 +140,6 @@ public function testFieldInstanceSettings() { 'uri_scheme' => 'public', 'handler' => 'default', 'target_bundle' => NULL, - 'max_length' => 255, ); // This is the only way to compare arrays. $this->assertFalse(array_diff_assoc($field->getSettings(), $expected)); diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php index a027ade..c51428c 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php @@ -121,7 +121,10 @@ function testTranslateLinkVocabularyAdminPage() { $this->admin_user = $this->drupalCreateUser(array_merge(parent::getTranslatorPermissions(), array('access administration pages', 'administer taxonomy'))); $this->drupalLogin($this->admin_user); - $translatable_tid = $this->createEntity(array(), $this->langcodes[0], $this->vocabulary->id()); + $values = array( + 'name' => $this->randomName(), + ); + $translatable_tid = $this->createEntity($values, $this->langcodes[0], $this->vocabulary->id()); // Create an untranslatable vocabulary. $untranslatable_vocabulary = entity_create('taxonomy_vocabulary', array( @@ -133,7 +136,10 @@ function testTranslateLinkVocabularyAdminPage() { )); $untranslatable_vocabulary->save(); - $untranslatable_tid = $this->createEntity(array(), $this->langcodes[0], $untranslatable_vocabulary->id()); + $values = array( + 'name' => $this->randomName(), + ); + $untranslatable_tid = $this->createEntity($values, $this->langcodes[0], $untranslatable_vocabulary->id()); // Verify translation links. $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary->id() . '/overview');