You are here

protected property CommentTest::$expectedResults in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/comment/tests/src/Unit/Migrate/d7/CommentTest.php \Drupal\Tests\comment\Unit\Migrate\d7\CommentTest::expectedResults

Expected results after the source parsing.

Type: array

Overrides MigrateSqlSourceTestCase::$expectedResults

File

core/modules/comment/tests/src/Unit/Migrate/d7/CommentTest.php, line 28
Contains \Drupal\Tests\comment\Unit\Migrate\d7\CommentTest.

Class

CommentTest
Tests D7 comment source plugin.

Namespace

Drupal\Tests\comment\Unit\Migrate\d7

Code

protected $expectedResults = array(
  array(
    'cid' => '1',
    'pid' => '0',
    'nid' => '1',
    'uid' => '1',
    'subject' => 'A comment',
    'hostname' => '::1',
    'created' => '1421727536',
    'changed' => '1421727536',
    'status' => '1',
    'thread' => '01/',
    'name' => 'admin',
    'mail' => '',
    'homepage' => '',
    'language' => 'und',
    'comment_body' => array(
      array(
        'value' => 'This is a comment',
        'format' => 'filtered_html',
      ),
    ),
  ),
);