You are here

protected function FeedsMapperNodeSummaryTestCase::assertNodeSummaryValues in Feeds 7.2

Checks that the nodes match the imported values.

1 call to FeedsMapperNodeSummaryTestCase::assertNodeSummaryValues()
FeedsMapperNodeSummaryTestCase::test in tests/feeds_mapper_summary.test
Tests importing CSV files for text fields with summary.

File

tests/feeds_mapper_summary.test, line 190
Contains FeedsMapperNodeSummaryTestCase.

Class

FeedsMapperNodeSummaryTestCase
Test case for mapping to node summary.

Code

protected function assertNodeSummaryValues() {

  // Check the three imported nodes.
  $this
    ->drupalGet('node/1/edit');
  $this
    ->assertNodeFieldValue('summary', 'Lorem ipsum summary');
  $this
    ->assertNodeFieldValue('body', 'Lorem ipsum body');
  $this
    ->drupalGet('node/2/edit');
  $this
    ->assertNodeFieldValue('summary', '');
  $this
    ->assertNodeFieldValue('body', 'Ut wisi enim ad minim veniam body');
  $this
    ->drupalGet('node/3/edit');
  $this
    ->assertNodeFieldValue('summary', '');
  $this
    ->assertNodeFieldValue('body', '');
}