Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / shortcut / tests / src / Kernel / Plugin / migrate / source / d7 / ShortcutSetUsersTest.php
1 <?php
2
3 namespace Drupal\Tests\shortcut\Kernel\Plugin\migrate\source\d7;
4
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
6
7 /**
8  * Tests D7 ShortcutSetUsers source plugin.
9  *
10  * @covers Drupal\shortcut\Plugin\migrate\source\d7\ShortcutSetUsers
11  *
12  * @group shortcut
13  */
14 class ShortcutSetUsersTest extends MigrateSqlSourceTestBase {
15
16   /**
17    * {@inheritdoc}
18    */
19   public static $modules = ['shortcut', 'migrate_drupal'];
20
21   /**
22    * {@inheritdoc}
23    */
24   public function providerSource() {
25     $tests = [];
26
27     // The source data.
28     $tests[0]['source_data']['shortcut_set_users'] = [
29       [
30         'uid' => '2',
31         'set_name' => 'shortcut-set-2',
32       ],
33     ];
34
35     // The expected results are identical to the source data.
36     $tests[0]['expected_data'] = $tests[0]['source_data']['shortcut_set_users'];
37
38     return $tests;
39   }
40
41 }