function 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\d6Code
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.