diff core/profiles/minimal/tests/src/Functional/MinimalTest.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/profiles/minimal/tests/src/Functional/MinimalTest.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/profiles/minimal/tests/src/Functional/MinimalTest.php	Thu May 09 15:34:47 2019 +0100
@@ -3,6 +3,8 @@
 namespace Drupal\Tests\minimal\Functional;
 
 use Drupal\Tests\BrowserTestBase;
+use Drupal\Tests\RequirementsPageTrait;
+use Drupal\user\UserInterface;
 
 /**
  * Tests Minimal installation profile expectations.
@@ -11,6 +13,8 @@
  */
 class MinimalTest extends BrowserTestBase {
 
+  use RequirementsPageTrait;
+
   protected $profile = 'minimal';
 
   /**
@@ -33,6 +37,8 @@
     // Ensure that there are no pending updates after installation.
     $this->drupalLogin($this->rootUser);
     $this->drupalGet('update.php/selection');
+    $this->updateRequirementsProblem();
+    $this->drupalGet('update.php/selection');
     $this->assertText('No pending updates.');
 
     // Ensure that there are no pending entity updates after installation.
@@ -40,7 +46,7 @@
 
     // Ensure special configuration overrides are correct.
     $this->assertFalse($this->config('system.theme.global')->get('features.node_user_picture'), 'Configuration system.theme.global:features.node_user_picture is FALSE.');
-    $this->assertEquals(USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL, $this->config('user.settings')->get('register'));
+    $this->assertEquals(UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL, $this->config('user.settings')->get('register'));
   }
 
 }