function TrackerUserTest::providerSource

Same name in other branches
  1. 9 core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php \Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7\TrackerUserTest::providerSource()
  2. 10 core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php \Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7\TrackerUserTest::providerSource()
  3. 11.x core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php \Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7\TrackerUserTest::providerSource()

Overrides MigrateSourceTestBase::providerSource

File

core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerUserTest.php, line 24

Class

TrackerUserTest
Tests D7 tracker user source plugin.

Namespace

Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7

Code

public function providerSource() {
    $tests = [];
    // The source data.
    $tests[0]['database']['tracker_user'] = [
        [
            'nid' => '1',
            'uid' => '2',
            'published' => '1',
            'changed' => '1421727536',
        ],
    ];
    // The expected results are identical to the source data.
    $tests[0]['expected_results'] = $tests[0]['database']['tracker_user'];
    return $tests;
}

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