- try {
- // We expect an exception, because there's no node to reference.
- $this->performStubTest('comment');
- $this->fail('Expected exception has not been thrown.');
- }
- catch (MigrateException $e) {
- $this->assertIdentical($e->getMessage(),
- 'Stubbing failed, unable to generate value for field entity_id');
- }
-
- // The stub should pass when there's a node to point to.
- $this->createStub('node');