function MigrateBlockTest::testBlockMigration

Same name in this branch
  1. 9 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  2. 9 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockTest::testBlockMigration()
Same name and namespace in other branches
  1. 11.x core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d6\MigrateBlockTest::testBlockMigration()
  2. 11.x core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php \Drupal\Tests\block\Kernel\Migrate\d7\MigrateBlockTest::testBlockMigration()

Tests the block migration.

File

core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php, line 92

Class

MigrateBlockTest
Tests migration of aggregator block.

Namespace

Drupal\Tests\aggregator\Kernel\Migrate\d6

Code

public function testBlockMigration() {
  $blocks = Block::loadMultiple();
  $this->assertCount(25, $blocks);
  // Check aggregator block.
  $settings = [
    'id' => 'aggregator_feed_block',
    'label' => '',
    'provider' => 'aggregator',
    'label_display' => '0',
    'block_count' => 7,
    'feed' => '5',
  ];
  $this->assertEntity('aggregator', [], 'sidebar', 'olivero', -2, $settings);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.