summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2014-03-05 20:39:40 (GMT)
committerDries2014-03-05 20:39:40 (GMT)
commit3e69d365d87fc745d37a54d817eeaaec6332427e (patch)
tree04d79edd8742758e4aad5f3976710368bcf3a3ac
parent3ce7c36b245ad1eecdcc9c6d84caa37055f5bebd (diff)
Issue #2207197 by longwave, andrei.dincu, jhodgdon: Obsolete docs in WebTestBase::drupalPlaceBlock()?.
-rw-r--r--core/modules/block/lib/Drupal/block/Tests/NewDefaultThemeBlocksTest.php4
-rw-r--r--core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php3
2 files changed, 0 insertions, 7 deletions
diff --git a/core/modules/block/lib/Drupal/block/Tests/NewDefaultThemeBlocksTest.php b/core/modules/block/lib/Drupal/block/Tests/NewDefaultThemeBlocksTest.php
index b3bf5b9..c544960 100644
--- a/core/modules/block/lib/Drupal/block/Tests/NewDefaultThemeBlocksTest.php
+++ b/core/modules/block/lib/Drupal/block/Tests/NewDefaultThemeBlocksTest.php
@@ -35,9 +35,6 @@ class NewDefaultThemeBlocksTest extends WebTestBase {
function testNewDefaultThemeBlocks() {
$default_theme = \Drupal::config('system.theme')->get('default');
- // Add several block instances.
- $this->drupalLogin($this->drupalCreateUser(array('administer blocks')));
-
// Add two instances of the user login block.
$this->drupalPlaceBlock('user_login_block', array(
'id' => $default_theme . '_' . strtolower($this->randomName(8)),
@@ -50,7 +47,6 @@ class NewDefaultThemeBlocksTest extends WebTestBase {
$this->drupalPlaceBlock('system_powered_by_block', array(
'id' => $default_theme . '_' . strtolower($this->randomName(8)),
));
- $this->drupalLogout();
// Enable a different theme.
$new_theme = 'bartik';
diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
index 69b8454..942ebab 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
@@ -338,9 +338,6 @@ abstract class WebTestBase extends TestBase {
/**
* Creates a block instance based on default settings.
*
- * Note: Until this can be done programmatically, the active user account
- * must have permission to administer blocks.
- *
* @param string $plugin_id
* The plugin ID of the block type for this block instance.
* @param array $settings