function SearchPageTest::providerSource

Same name in this branch
  1. 9 core/modules/search/tests/src/Kernel/Migrate/d7/SearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\SearchPageTest::providerSource()
Same name in other branches
  1. 8.9.x core/modules/search/tests/src/Kernel/Migrate/d6/SearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d6\SearchPageTest::providerSource()
  2. 8.9.x core/modules/search/tests/src/Kernel/Migrate/d7/SearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\SearchPageTest::providerSource()
  3. 10 core/modules/search/tests/src/Kernel/Migrate/d6/SearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d6\SearchPageTest::providerSource()
  4. 10 core/modules/search/tests/src/Kernel/Migrate/d7/SearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\SearchPageTest::providerSource()
  5. 11.x core/modules/search/tests/src/Kernel/Migrate/d6/SearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d6\SearchPageTest::providerSource()
  6. 11.x core/modules/search/tests/src/Kernel/Migrate/d7/SearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\SearchPageTest::providerSource()

Overrides MigrateSourceTestBase::providerSource

File

core/modules/search/tests/src/Kernel/Migrate/d6/SearchPageTest.php, line 23

Class

SearchPageTest
Tests D6 search page source plugin.

Namespace

Drupal\Tests\search\Kernel\Migrate\d6

Code

public function providerSource() {
    $tests[0]['source_data'] = [
        'variable' => [
            [
                'name' => 'node_rank_comments',
                'value' => 's:1:"5";',
            ],
            [
                'name' => 'node_rank_promote',
                'value' => 's:1:"1";',
            ],
        ],
        'system' => [
            [
                'name' => 'node',
                'type' => 'module',
                'status' => '1',
            ],
        ],
    ];
    $tests[0]['expected_data'] = [
        [
            'module' => 'node',
            'node_rank_comments' => '5',
            'node_rank_promote' => '1',
        ],
    ];
    $tests[0]['expected_count'] = NULL;
    $tests[0]['configuration'] = [
        'variables' => [
            'node_rank_comments',
            'node_rank_promote',
        ],
    ];
    return $tests;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.