You are here

protected function ExampleContentTrait::removeTestEntity in Search API 8

Deletes the test entity with the given ID.

Parameters

int $id: The entity's ID.

Return value

$this

File

tests/src/Functional/ExampleContentTrait.php, line 112

Class

ExampleContentTrait
Contains helpers to create data that can be used by tests.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function removeTestEntity($id) {
  $this->entities[$id]
    ->delete();
  unset($this->entities[$id]);
  return $this;
}