protected property MenuLinkSourceTest::$expectedResults in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/tests/src/Unit/Plugin/migrate/source/MenuLinkSourceTest.php \Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source\MenuLinkSourceTest::expectedResults
Expected results after the source parsing.
Type: array
Overrides MigrateSqlSourceTestCase::$expectedResults
File
- core/
modules/ menu_link_content/ tests/ src/ Unit/ Plugin/ migrate/ source/ MenuLinkSourceTest.php, line 27 - Contains \Drupal\Tests\menu_link_content\Unit\Plugin\migrate\source\MenuLinkSourceTest.
Class
- MenuLinkSourceTest
- Tests menu link source plugin.
Namespace
Drupal\Tests\menu_link_content\Unit\Plugin\migrate\sourceCode
protected $expectedResults = array(
array(
'menu_name' => 'menu-test-menu',
'mlid' => 138,
'plid' => 0,
'link_path' => 'admin',
'router_path' => 'admin',
'link_title' => 'Test 1',
'options' => array(
'attributes' => array(
'title' => 'Test menu link 1',
),
),
'module' => 'menu',
'hidden' => 0,
'external' => 0,
'has_children' => 1,
'expanded' => 0,
'weight' => 15,
'depth' => 1,
'customized' => 1,
'p1' => '138',
'p2' => '0',
'p3' => '0',
'p4' => '0',
'p5' => '0',
'p6' => '0',
'p7' => '0',
'p8' => '0',
'p9' => '0',
'updated' => '0',
),
array(
'menu_name' => 'menu-test-menu',
'mlid' => 139,
'plid' => 138,
'link_path' => 'admin/modules',
'router_path' => 'admin/modules',
'link_title' => 'Test 2',
'options' => array(
'attributes' => array(
'title' => 'Test menu link 2',
),
),
'module' => 'menu',
'hidden' => 0,
'external' => 0,
'has_children' => 0,
'expanded' => 0,
'weight' => 12,
'depth' => 2,
'customized' => 1,
'p1' => '138',
'p2' => '139',
'p3' => '0',
'p4' => '0',
'p5' => '0',
'p6' => '0',
'p7' => '0',
'p8' => '0',
'p9' => '0',
'updated' => '0',
),
);