You are here

protected property RoleTest::$expectedResults in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/user/tests/src/Unit/Migrate/d6/RoleTest.php \Drupal\Tests\user\Unit\Migrate\d6\RoleTest::expectedResults
  2. 8 core/modules/user/tests/src/Unit/Plugin/migrate/source/d7/RoleTest.php \Drupal\Tests\user\Unit\Plugin\migrate\source\d7\RoleTest::expectedResults
Same name and namespace in other branches
  1. 8.0 core/modules/user/tests/src/Unit/Plugin/migrate/source/d7/RoleTest.php \Drupal\Tests\user\Unit\Plugin\migrate\source\d7\RoleTest::expectedResults

Expected results after the source parsing.

Type: array

Overrides MigrateSqlSourceTestCase::$expectedResults

File

core/modules/user/tests/src/Unit/Plugin/migrate/source/d7/RoleTest.php, line 28
Contains \Drupal\Tests\user\Unit\Plugin\migrate\source\d7\RoleTest.

Class

RoleTest
Tests D7 role source plugin.

Namespace

Drupal\Tests\user\Unit\Plugin\migrate\source\d7

Code

protected $expectedResults = array(
  array(
    'rid' => 1,
    'name' => 'anonymous user',
    'permissions' => array(
      'access content',
    ),
  ),
  array(
    'rid' => 2,
    'name' => 'authenticated user',
    'permissions' => array(
      'access comments',
      'access content',
      'post comments',
      'post comments without approval',
    ),
  ),
  array(
    'rid' => 3,
    'name' => 'administrator',
    'permissions' => array(
      'access comments',
      'administer comments',
      'post comments',
      'post comments without approval',
      'access content',
      'administer content types',
      'administer nodes',
    ),
  ),
);