protected $term2;
/**
* {@inheritdoc}
*/
protected function setUp($import_test_views = TRUE,
$modules =
[]): void
{ // Important: taxonomy_test_views module must not be in the $modules to
// avoid an issue that particular view is already exists.
parent::
setUp($import_test_views,
$modules);
$this->
mockStandardInstall();
// This needs to be done again after ::mockStandardInstall() to make
// test vocabularies available.
// Explicitly add taxonomy_test_views to $modules now, so required views are
// being created.
$modules[] = 'taxonomy_test_views';
if ($import_test_views) { ViewTestData::
createTestViews(static::
class,
$modules);
} $this->term1 =
$this->
createTerm();