RngSiteTestBase.php in RNG - Events and Registrations 8
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 = array(
'rng',
'node',
);
var $registration_type;
var $event_bundle;
var $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();
}
}