MigrateAggregatorFeedTest.php in Zircon Profile 8.0
File
core/modules/aggregator/src/Tests/Migrate/d6/MigrateAggregatorFeedTest.php
View source
<?php
namespace Drupal\aggregator\Tests\Migrate\d6;
use Drupal\aggregator\Entity\Feed;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
class MigrateAggregatorFeedTest extends MigrateDrupal6TestBase {
public static $modules = [
'aggregator',
];
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('aggregator_feed');
$this
->executeMigration('d6_aggregator_feed');
}
public function testAggregatorFeedImport() {
$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);
}
}