X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Faggregator%2Ftests%2Fsrc%2FKernel%2FMigrate%2FMigrateAggregatorStubTest.php;fp=web%2Fcore%2Fmodules%2Faggregator%2Ftests%2Fsrc%2FKernel%2FMigrate%2FMigrateAggregatorStubTest.php;h=8de1487d0cb62dc4b2049855f959d04766d370ff;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=6d96aa1de1d9685b6c39270f75a796d327eabe88;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/core/modules/aggregator/tests/src/Kernel/Migrate/MigrateAggregatorStubTest.php b/web/core/modules/aggregator/tests/src/Kernel/Migrate/MigrateAggregatorStubTest.php index 6d96aa1de..8de1487d0 100644 --- a/web/core/modules/aggregator/tests/src/Kernel/Migrate/MigrateAggregatorStubTest.php +++ b/web/core/modules/aggregator/tests/src/Kernel/Migrate/MigrateAggregatorStubTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\aggregator\Kernel\Migrate; -use Drupal\migrate\MigrateException; use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase; use Drupal\migrate_drupal\Tests\StubTestTrait; @@ -40,18 +39,6 @@ class MigrateAggregatorStubTest extends MigrateDrupalTestBase { * Tests creation of aggregator feed items. */ public function testItemStub() { - try { - // We expect an exception, because there's no feed to reference. - $this->performStubTest('aggregator_item'); - $this->fail('Expected exception has not been thrown.'); - } - catch (MigrateException $e) { - $this->assertIdentical($e->getMessage(), - 'Stubbing failed, unable to generate value for field fid'); - } - - // The stub should pass when there's a feed to point to. - $this->createStub('aggregator_feed'); $this->performStubTest('aggregator_item'); }