You are here

protected property TermTestBase::$expectedResults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/tests/src/Unit/Migrate/TermTestBase.php \Drupal\Tests\taxonomy\Unit\Migrate\TermTestBase::expectedResults

Expected results after the source parsing.

Type: array

Overrides MigrateSqlSourceTestCase::$expectedResults

File

core/modules/taxonomy/tests/src/Unit/Migrate/TermTestBase.php, line 27
Contains \Drupal\Tests\taxonomy\Unit\Migrate\TermTestBase.

Class

TermTestBase
Base class for taxonomy term source unit tests.

Namespace

Drupal\Tests\taxonomy\Unit\Migrate

Code

protected $expectedResults = array(
  array(
    'tid' => 1,
    'vid' => 5,
    'name' => 'name value 1',
    'description' => 'description value 1',
    'weight' => 0,
    'parent' => array(
      0,
    ),
  ),
  array(
    'tid' => 2,
    'vid' => 6,
    'name' => 'name value 2',
    'description' => 'description value 2',
    'weight' => 0,
    'parent' => array(
      0,
    ),
  ),
  array(
    'tid' => 3,
    'vid' => 6,
    'name' => 'name value 3',
    'description' => 'description value 3',
    'weight' => 0,
    'parent' => array(
      0,
    ),
  ),
  array(
    'tid' => 4,
    'vid' => 5,
    'name' => 'name value 4',
    'description' => 'description value 4',
    'weight' => 1,
    'parent' => array(
      1,
    ),
  ),
  array(
    'tid' => 5,
    'vid' => 6,
    'name' => 'name value 5',
    'description' => 'description value 5',
    'weight' => 1,
    'parent' => array(
      2,
    ),
  ),
  array(
    'tid' => 6,
    'vid' => 6,
    'name' => 'name value 6',
    'description' => 'description value 6',
    'weight' => 0,
    'parent' => array(
      3,
      2,
    ),
  ),
);