diff --git a/core/tests/Drupal/Tests/BrowserAssertTrait.php b/core/tests/Drupal/Tests/BrowserAssertTrait.php index 2c24302..e108b6d 100644 --- a/core/tests/Drupal/Tests/BrowserAssertTrait.php +++ b/core/tests/Drupal/Tests/BrowserAssertTrait.php @@ -2,6 +2,8 @@ namespace Drupal\Tests; +use Drupal\Component\Utility\Html; + /** * Provides convenience methods for assertions in browser tests. */ diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php index 34dfdf5..56c0cce 100644 --- a/core/tests/Drupal/Tests/BrowserTestBase.php +++ b/core/tests/Drupal/Tests/BrowserTestBase.php @@ -21,6 +21,7 @@ use Drupal\Core\Url; use Drupal\Core\Test\TestDatabase; use Drupal\simpletest\AssertHelperTrait; +use Drupal\simpletest\BlockCreationTrait; use Drupal\simpletest\NodeCreationTrait; use Drupal\user\Entity\Role; use Drupal\user\Entity\User; @@ -38,6 +39,7 @@ */ abstract class BrowserTestBase extends \PHPUnit_Framework_TestCase { use AssertHelperTrait; + use BlockCreationTrait; use BrowserAssertTrait; use RandomGeneratorTrait; use SessionTestTrait;