summaryrefslogtreecommitdiffstats
path: root/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php')
-rw-r--r--core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php
index dfc3b61..c3fbca3 100644
--- a/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php
+++ b/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php
@@ -135,11 +135,13 @@ class BlockStorageUnitTest extends DrupalUnitTestBase {
$entity = entity_load('block', 'stark.test_block');
$output = entity_view($entity, 'block');
$expected = array();
- $expected[] = ' <div id="block-test-block" class="block block-block-test">';
- $expected[] = '';
+ $expected[] = '<div class="block block-block-test" id="block-test-block">';
+ $expected[] = ' ';
$expected[] = ' ';
+ $expected[] = '';
$expected[] = ' <div class="content">';
- $expected[] = ' </div>';
+ $expected[] = ' ';
+ $expected[] = ' </div>';
$expected[] = '</div>';
$expected[] = '';
$expected_output = implode("\n", $expected);
@@ -159,12 +161,14 @@ class BlockStorageUnitTest extends DrupalUnitTestBase {
$entity->save();
$output = entity_view($entity, 'block');
$expected = array();
- $expected[] = ' <div id="block-test-block2" class="block block-block-test">';
- $expected[] = '';
- $expected[] = ' <h2>Powered by Bananas</h2>';
+ $expected[] = '<div class="block block-block-test" id="block-test-block2">';
$expected[] = ' ';
+ $expected[] = ' <h2>Powered by Bananas</h2>';
+ $expected[] = ' ';
+ $expected[] = '';
$expected[] = ' <div class="content">';
- $expected[] = ' </div>';
+ $expected[] = ' ';
+ $expected[] = ' </div>';
$expected[] = '</div>';
$expected[] = '';
$expected_output = implode("\n", $expected);