Created
July 30, 2016 14:58
-
-
Save jepster/363f8ce3b43d9ca6490eb1d39b29c42e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\Tests\permissions_by_term\Kernel; | |
use Drupal\KernelTests\KernelTestBase; | |
use Drupal\field\Entity\FieldStorageConfig; | |
use Drupal\taxonomy\Entity\Vocabulary; | |
/** | |
* Tests the ERR composite relationship upgrade path. | |
* | |
* @group permissions_by_term | |
*/ | |
class SelectTermTest extends KernelTestBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
public static $modules = array('taxonomy', 'text'); | |
/** | |
* Views used by this test. | |
* | |
* @var array | |
*/ | |
public static $testViews = array('test_field_filters'); | |
/** | |
* The vocabulary used for creating terms. | |
* | |
* @var \Drupal\taxonomy\VocabularyInterface | |
*/ | |
protected $vocabulary; | |
/** | |
* List of taxonomy term names by language. | |
* | |
* @var array | |
*/ | |
public $termNames = []; | |
function setUp() { | |
parent::setUp(); | |
// Create a vocabulary. | |
$this->vocabulary = Vocabulary::create([ | |
'name' => 'Views testing tags', | |
'vid' => 'views_testing_tags', | |
]); | |
$this->vocabulary->save(); | |
// Add a translatable field to the vocabulary. | |
$field = FieldStorageConfig::create(array( | |
'field_name' => 'field_foo', | |
'entity_type' => 'taxonomy_term', | |
'type' => 'text', | |
)); | |
$field->save(); | |
} | |
public function testSomething() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment