You are here

public function DataLayerKernelTest::setupMockEntityTerm in dataLayer 8

Setup Mock Entity Terms.

1 call to DataLayerKernelTest::setupMockEntityTerm()
DataLayerKernelTest::setupMockNodeWithTerm in tests/src/Kernel/DataLayerKernelTest.php
Setup mock node.

File

tests/src/Kernel/DataLayerKernelTest.php, line 270

Class

DataLayerKernelTest
Kernel test cases for datalayer module.

Namespace

Drupal\Tests\datalayer\Kernel

Code

public function setupMockEntityTerm() {
  $this->term = Term::create([
    'name' => 'someTag',
    'vid' => 'tags',
    'tid' => 1,
  ]);
  $this->term
    ->save();
}