SimpleSitemapViewsTestBase.php 802 Bytes
Newer Older
WalkingDexter's avatar
WalkingDexter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php

/**
 * @file
 * Contains a base class for Simple XML Sitemap (Views) functional testing.
 */

namespace Drupal\Tests\simple_sitemap_views\Functional;

use Drupal\Tests\simple_sitemap\Functional\SimplesitemapTestBase;

/**
 * Defines a base class for Simple XML Sitemap (Views) functional testing.
 */
abstract class SimpleSitemapViewsTestBase extends SimplesitemapTestBase {

  /**
   * {@inheritdoc}
   */
WalkingDexter's avatar
WalkingDexter committed
20 21 22 23
  public static $modules = [
    'simple_sitemap_views',
    'simple_sitemap_views_test',
  ];
WalkingDexter's avatar
WalkingDexter committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

  /**
   * Views sitemap data.
   *
   * @var \Drupal\simple_sitemap_views\SimpleSitemapViews
   */
  protected $sitemapViews;

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();

    $this->sitemapViews = $this->container->get('simple_sitemap.views');
  }

}