diff core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/locale/tests/src/Functional/LocaleTranslatedSchemaDefinitionTest.php	Thu May 09 15:34:47 2019 +0100
@@ -4,6 +4,7 @@
 
 use Drupal\language\Entity\ConfigurableLanguage;
 use Drupal\Tests\BrowserTestBase;
+use Drupal\Tests\RequirementsPageTrait;
 
 /**
  * Adds and configures languages to check field schema definition.
@@ -12,6 +13,8 @@
  */
 class LocaleTranslatedSchemaDefinitionTest extends BrowserTestBase {
 
+  use RequirementsPageTrait;
+
   /**
    * Modules to enable.
    *
@@ -26,8 +29,7 @@
     parent::setUp();
     ConfigurableLanguage::createFromLangcode('fr')->save();
     $this->config('system.site')->set('default_langcode', 'fr')->save();
-    // Make sure new entity type definitions are processed.
-    \Drupal::service('entity.definition_update_manager')->applyUpdates();
+
     // Clear all caches so that the base field definition, its cache in the
     // entity manager, the t() cache, etc. are all cleared.
     drupal_flush_all_caches();
@@ -84,6 +86,8 @@
     // markup and a link instead of specific text because text may be
     // translated.
     $this->drupalGet($update_url . '/selection', ['external' => TRUE]);
+    $this->updateRequirementsProblem();
+    $this->drupalGet($update_url . '/selection', ['external' => TRUE]);
     $this->assertRaw('messages--status', 'No pending updates.');
     $this->assertNoLinkByHref('fr/update.php/run', 'No link to run updates.');
   }