MigrateAggregatorStubTest.php 901 Bytes
Newer Older
1
2
<?php

3
namespace Drupal\Tests\aggregator\Kernel\Migrate;
4

5
use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use Drupal\migrate_drupal\Tests\StubTestTrait;

/**
 * Test stub creation for aggregator feeds and items.
 *
 * @group aggregator
 */
class MigrateAggregatorStubTest extends MigrateDrupalTestBase {

  use StubTestTrait;

  /**
   * {@inheritdoc}
   */
20
  protected static $modules = ['aggregator'];
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->installEntitySchema('aggregator_feed');
    $this->installEntitySchema('aggregator_item');
  }

  /**
   * Tests creation of aggregator feed stubs.
   */
  public function testFeedStub() {
    $this->performStubTest('aggregator_feed');
  }

  /**
   * Tests creation of aggregator feed items.
   */
  public function testItemStub() {
    $this->performStubTest('aggregator_item');
  }

}