TrackerNodeTest.php

Same filename in other branches
  1. 9 core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
  2. 8.9.x core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php
  3. 10 core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php

Namespace

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

File

core/modules/tracker/tests/src/Kernel/Plugin/migrate/source/d7/TrackerNodeTest.php

View source
<?php

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

use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;

/**
 * Tests D7 tracker node source plugin.
 *
 * @covers Drupal\tracker\Plugin\migrate\source\d7\TrackerNode
 *
 * @group tracker
 * @group legacy
 */
class TrackerNodeTest extends MigrateSqlSourceTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'tracker',
        'migrate_drupal',
    ];
    
    /**
     * {@inheritdoc}
     */
    public static function providerSource() {
        $tests = [];
        // The source data.
        $tests[0]['database']['tracker_node'] = [
            [
                'nid' => '2',
                'published' => '1',
                'changed' => '1421727536',
            ],
        ];
        // The expected results are identical to the source data.
        $tests[0]['expected_results'] = $tests[0]['database']['tracker_node'];
        return $tests;
    }

}

Classes

Title Deprecated Summary
TrackerNodeTest Tests D7 tracker node source plugin.

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