You are here

protected function ConfigDependenciesTest::loadUnchangedTemplate in Workbench Email 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/ConfigDependenciesTest.php \Drupal\Tests\workbench_email\Kernel\ConfigDependenciesTest::loadUnchangedTemplate()

Loads the given template.

Parameters

string $template_id: Template ID.

Return value

\Drupal\workbench_email\TemplateInterface Unchanged scheme.

1 call to ConfigDependenciesTest::loadUnchangedTemplate()
ConfigDependenciesTest::testSchemeDependencies in tests/src/Kernel/ConfigDependenciesTest.php
Tests scheme dependencies.

File

tests/src/Kernel/ConfigDependenciesTest.php, line 152

Class

ConfigDependenciesTest
Defines a class for testing config dependencies.

Namespace

Drupal\Tests\workbench_email\Kernel

Code

protected function loadUnchangedTemplate($template_id) {
  return $this->container
    ->get('entity_type.manager')
    ->getStorage('workbench_email_template')
    ->loadUnchanged($template_id);
}