public function StringTranslationTest::setUp in Service Container 7
Same name and namespace in other branches
- 7.2 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\StringTranslationCode
public function setUp() {
$this->drupal7 = \Mockery::mock('\\Drupal\\service_container\\Legacy\\Drupal7');
$this->string_translation = new StringTranslation($this->drupal7);
}