RngSiteTestBase.php in RNG - Events and Registrations 8.2
File
src/Tests/RngSiteTestBase.php
View source
<?php
namespace Drupal\rng\Tests;
use Drupal\rng\Form\EventTypeForm;
abstract class RngSiteTestBase extends RngWebTestBase {
public static $modules = [
'rng',
'node',
];
public $registration_type;
public $event_bundle;
public $event_type;
protected function setUp() {
parent::setUp();
$this->event_bundle = $this
->drupalCreateContentType();
$this->event_type = $this
->createEventType('node', $this->event_bundle
->id());
EventTypeForm::createDefaultRules('node', $this->event_bundle
->id());
$this->registration_type = $this
->createRegistrationType();
}
}