Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -138,7 +138,7 @@ class Block extends DrupalSqlBase {
$settings['book']['block_mode'] = $this->variableGet('book_block_mode', 'all pages');
break;
case 'forum':
$settings['forum']['block_num'] = $this->variableGet('forum_block_num_'. $delta, 5);
$settings['forum']['block_num'] = $this->variableGet('forum_block_num_' . $delta, 5);
break;
case 'statistics':
foreach (array('statistics_block_top_day_num', 'statistics_block_top_all_num', 'statistics_block_top_last_num') as $name) {

View file

@ -31,7 +31,7 @@ class BlockHookOperationTest extends WebTestBase {
$this->drupalLogin($admin_user);
}
/*
/**
* Tests the block list to see if the test_operation link is added.
*/
public function testBlockOperationAlter() {

View file

@ -59,4 +59,5 @@ class BlockInvalidRegionTest extends WebTestBase {
$this->drupalPostForm('admin/config/development/performance', array(), 'Clear all caches');
$this->assertNoRaw($warning_message, 'Disabled block in the invalid region will not trigger the warning.');
}
}

View file

@ -73,4 +73,5 @@ class BlockLanguageCacheTest extends WebTestBase {
$this->assertText($edit['label']);
}
}
}

View file

@ -69,11 +69,12 @@ class BlockRenderOrderTest extends WebTestBase {
foreach ($controller->loadMultiple() as $return_block) {
$id = $return_block->id();
if ($return_block_weight = $return_block->getWeight()) {
$this->assertTrue($test_blocks[$id]['weight'] == $return_block_weight, 'Block weight is set as "' . $return_block_weight . '" for ' . $id . ' block.');
$this->assertTrue($test_blocks[$id]['weight'] == $return_block_weight, 'Block weight is set as "' . $return_block_weight . '" for ' . $id . ' block.');
$position[$id] = strpos($test_content, Html::getClass('block-' . $test_blocks[$id]['id']));
}
}
$this->assertTrue($position['stark_powered'] < $position['stark_by'], 'Blocks with different weight are rendered in the correct order.');
$this->assertTrue($position['stark_drupal'] < $position['stark_by'], 'Blocks with identical weight are rendered in alphabetical order.');
}
}

View file

@ -67,4 +67,5 @@ abstract class BlockTestBase extends WebTestBase {
$block->delete();
}
}
}

View file

@ -119,12 +119,12 @@ class BlockUiTest extends WebTestBase {
foreach ($this->blockValues as $values) {
// Check if the region and weight settings changes have persisted.
$this->assertOptionSelected(
'edit-blocks-' . $values['settings']['id'] . '-region',
'edit-blocks-' . $values['settings']['id'] . '-region',
'header',
'The block "' . $label . '" has the correct region assignment (header).'
);
$this->assertOptionSelected(
'edit-blocks-' . $values['settings']['id'] . '-weight',
'edit-blocks-' . $values['settings']['id'] . '-weight',
$values['test_weight'],
'The block "' . $label . '" has the correct weight assignment (' . $values['test_weight'] . ').'
);

View file

@ -38,4 +38,5 @@ class NonDefaultBlockAdminTest extends WebTestBase {
$this->drupalGet('admin/structure/block/list/' . $new_theme);
$this->assertText('Bartik(' . t('active tab') . ')', 'Tab for non-default theme found.');
}
}

View file

@ -2,7 +2,7 @@
/**
* @file
* Provide test blocks.
* Provide test blocks.
*/
use Drupal\Core\Block\BlockPluginInterface;

View file

@ -8,7 +8,7 @@ use Drupal\Core\Form\FormState;
/**
* Controller for block_test module
*/
class TestMultipleFormController extends ControllerBase {
class TestMultipleFormController extends ControllerBase {
public function testMultipleForms() {
$form_state = new FormState();

View file

@ -11,7 +11,6 @@ use Drupal\Core\Condition\ConditionPluginBase;
* id = "baloney_spam",
* label = @Translation("Baloney spam"),
* )
*
*/
class BaloneySpam extends ConditionPluginBase {

View file

@ -99,4 +99,5 @@ class BlockInterfaceTest extends KernelTestBase {
// testing BlockBase's implementation, not the interface itself.
$this->assertIdentical($display_block->getMachineNameSuggestion(), 'displaymessage', 'The plugin returned the expected machine name suggestion.');
}
}

View file

@ -16,7 +16,7 @@ class MigrateBlockTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
static $modules = [
public static $modules = [
'block',
'views',
'comment',