You are here

public function StringTranslationTest::setUp in Service Container 7.2

Same name and namespace in other branches
  1. 7 tests/src/StringTranslation/StringTranslationTest.php \Drupal\Tests\service_container\StringTranslation\StringTranslationTest::setUp()

File

tests/src/StringTranslation/StringTranslationTest.php, line 34
Contains \Drupal\Tests\service_container\StringTranslation\StringTranslationTest

Class

StringTranslationTest
@coversDefaultClass \Drupal\service_container\StringTranslation\StringTranslation

Namespace

Drupal\Tests\service_container\StringTranslation

Code

public function setUp() {
  $this->drupal7 = \Mockery::mock('\\Drupal\\service_container\\Legacy\\Drupal7');
  $this->string_translation = new StringTranslation($this->drupal7);
}