diff -u b/block_example/src/Tests/BlockExampleTest.php b/block_example/src/Tests/BlockExampleTest.php --- b/block_example/src/Tests/BlockExampleTest.php +++ b/block_example/src/Tests/BlockExampleTest.php @@ -27,20 +27,14 @@ public static $modules = array('block', 'block_example'); /** - * Enable modules and create user with specific permissions. + * Tests block_example functionality. */ - public function setUp() { - parent::setUp(); + public function testBlockExampleBasic() { // Create user. $web_user = $this->drupalCreateUser(array('administer blocks')); // Login the admin user. $this->drupalLogin($web_user); - } - /** - * Tests block_example functionality. - */ - public function testBlockExampleBasic() { $theme_name = \Drupal::config('system.theme')->get('default'); // Verify the blocks are listed to be added.