Version 1
[yaffs-website] / web / core / modules / tracker / tests / src / Kernel / Plugin / migrate / source / d7 / TrackerNodeTest.php
1 <?php
2
3 namespace Drupal\Tests\tracker\Kernel\Plugin\migrate\source\d7;
4
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
6
7 /**
8  * Tests D7 tracker node source plugin.
9  *
10  * @covers Drupal\tracker\Plugin\migrate\source\d7\TrackerNode
11  *
12  * @group tracker
13  */
14 class TrackerNodeTest extends MigrateSqlSourceTestBase {
15
16   /**
17   * {@inheritdoc}
18   */
19   public static $modules = ['tracker', 'migrate_drupal'];
20
21   /**
22   * {@inheritdoc}
23   */
24   public function providerSource() {
25     $tests = [];
26
27     // The source data.
28     $tests[0]['database']['tracker_node'] = [
29       [
30         'nid' => '2',
31         'published' => '1',
32         'changed' => '1421727536',
33       ]
34     ];
35
36     // The expected results are identical to the source data.
37     $tests[0]['expected_results'] = $tests[0]['database']['tracker_node'];
38
39     return $tests;
40   }
41
42 }