public function MigrateAggregatorItemTest::testAggregatorItem in Zircon Profile 8
Same name in this branch
- 8 core/modules/aggregator/src/Tests/Migrate/d6/MigrateAggregatorItemTest.php \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorItemTest::testAggregatorItem()
- 8 core/modules/aggregator/src/Tests/Migrate/d7/MigrateAggregatorItemTest.php \Drupal\aggregator\Tests\Migrate\d7\MigrateAggregatorItemTest::testAggregatorItem()
Same name and namespace in other branches
- 8.0 core/modules/aggregator/src/Tests/Migrate/d6/MigrateAggregatorItemTest.php \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorItemTest::testAggregatorItem()
Test Drupal 6 aggregator item migration to Drupal 8.
File
- core/
modules/ aggregator/ src/ Tests/ Migrate/ d6/ MigrateAggregatorItemTest.php, line 38 - Contains \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorItemTest.
Class
- MigrateAggregatorItemTest
- Tests migration of aggregator items.
Namespace
Drupal\aggregator\Tests\Migrate\d6Code
public function testAggregatorItem() {
/** @var \Drupal\aggregator\Entity\Item $item */
$item = Item::load(1);
$this
->assertIdentical('1', $item
->id());
$this
->assertIdentical('5', $item
->getFeedId());
$this
->assertIdentical('This (three) weeks in Drupal Core - January 10th 2014', $item
->label());
$this
->assertIdentical('larowlan', $item
->getAuthor());
$this
->assertIdentical("<h2 id='new'>What's new with Drupal 8?</h2>", $item
->getDescription());
$this
->assertIdentical('https://groups.drupal.org/node/395218', $item
->getLink());
$this
->assertIdentical('1389297196', $item
->getPostedTime());
$this
->assertIdentical('en', $item
->language()
->getId());
$this
->assertIdentical('395218 at https://groups.drupal.org', $item
->getGuid());
}