You are here

SocialPostTestBase.php in Social Post 3.x

Same filename and directory in other branches
  1. 8.2 tests/src/Functional/SocialPostTestBase.php

File

tests/src/Functional/SocialPostTestBase.php
View source
<?php

namespace Drupal\Tests\social_post\Functional;

use Drupal\Tests\social_api\Functional\SocialApiTestBase;

/**
 * Defines a base class for testing Social Post implementers.
 */
abstract class SocialPostTestBase extends SocialApiTestBase {

  /**
   * Modules to enable.
   *
   * @var array
   */
  protected static $modules = [
    'block',
    'social_post',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    $this->adminUserPermissions = [
      'administer social api autoposting',
    ];
    $this->moduleType = 'social-post';
    parent::setUp();
  }

}

Classes

Namesort descending Description
SocialPostTestBase Defines a base class for testing Social Post implementers.