FieldTokensTestBase.php in Field tokens 8
File
src/Tests/FieldTokensTestBase.php
View source
<?php
namespace Drupal\field_tokens\Tests;
use Drupal\image\Tests\ImageFieldTestBase;
abstract class FieldTokensTestBase extends ImageFieldTestBase {
protected $contentType;
protected $field;
public static $modules = array(
'field_tokens',
'image',
);
protected function setUp() {
parent::setUp();
$this->contentType = $this
->drupalCreateContentType();
$field_name = strtolower($this
->randomMachineName());
$this->field = $this
->createImageField($field_name, $this->contentType
->id());
}
}