function MigrateAggregatorFeedTest::testAggregatorFeedImport

Same name in this branch
  1. 8.9.x core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorFeedTest.php \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateAggregatorFeedTest::testAggregatorFeedImport()
Same name and namespace in other branches
  1. 9 core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorFeedTest.php \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateAggregatorFeedTest::testAggregatorFeedImport()
  2. 9 core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateAggregatorFeedTest.php \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateAggregatorFeedTest::testAggregatorFeedImport()

Tests migration of aggregator feeds.

File

core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorFeedTest.php, line 32

Class

MigrateAggregatorFeedTest
Tests migration of aggregator feeds.

Namespace

Drupal\Tests\aggregator\Kernel\Migrate\d6

Code

public function testAggregatorFeedImport() {
    
    /** @var \Drupal\aggregator\Entity\Feed $feed */
    $feed = Feed::load(5);
    $this->assertIdentical('Know Your Meme', $feed->title->value);
    $this->assertIdentical('en', $feed->language()
        ->getId());
    $this->assertIdentical('http://knowyourmeme.com/newsfeed.rss', $feed->url->value);
    $this->assertIdentical('900', $feed->refresh->value);
    $this->assertIdentical('1387659487', $feed->checked->value);
    $this->assertIdentical('0', $feed->queued->value);
    $this->assertIdentical('http://knowyourmeme.com', $feed->link->value);
    $this->assertIdentical('New items added to the News Feed', $feed->description->value);
    $this->assertIdentical('http://b.thumbs.redditmedia.com/harEHsUUZVajabtC.png', $feed->image->value);
    $this->assertIdentical('"213cc1365b96c310e92053c5551f0504"', $feed->etag->value);
    $this->assertIdentical('0', $feed->modified->value);
}

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