og_sm-8.x-1.0/tests/src/Functional/OgSmWebTestBase.php
tests/src/Functional/OgSmWebTestBase.php
<?php
namespace Drupal\Tests\og_sm\Functional;
use Drupal\og_sm\Tests\SiteCreationTrait;
use Drupal\Tests\BrowserTestBase;
/**
* Base class to do functional tests for OG Site Manager functionality.
*/
abstract class OgSmWebTestBase extends BrowserTestBase {
use SiteCreationTrait;
/**
* {@inheritdoc}
*/
public static $modules = [
'field',
'node',
'og',
'og_ui',
'og_sm',
'system',
'user',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Node types to use in the test.
*/
const TYPE_DEFAULT = 'og_sm_node_type_not_group';
const TYPE_IS_GROUP = 'og_sm_node_type_is_group';
const TYPE_IS_GROUP_CONTENT = 'og_sm_node_type_is_group_content';
}
