class StringTranslationTest in Service Container 7
Same name and namespace in other branches
- 7.2 tests/src/StringTranslation/StringTranslationTest.php \Drupal\Tests\service_container\StringTranslation\StringTranslationTest
@coversDefaultClass \Drupal\service_container\StringTranslation\StringTranslation
Hierarchy
- class \Drupal\Tests\service_container\StringTranslation\StringTranslationTest extends \Drupal\Tests\service_container\StringTranslation\PHPUnit_Framework_TestCase
Expanded class hierarchy of StringTranslationTest
File
- tests/
src/ StringTranslation/ StringTranslationTest.php, line 15 - Contains \Drupal\Tests\service_container\StringTranslation\StringTranslationTest
Namespace
Drupal\Tests\service_container\StringTranslationView source
class StringTranslationTest extends \PHPUnit_Framework_TestCase {
/**
* The Drupal7 service.
*
* @var \Drupal\service_container\Legacy\Drupal7
*/
protected $drupal7;
/**
* The StringTranslation service.
*
* @var \Drupal\service_container\StringTranslation\StringTranslation
*/
protected $string_translation;
/**
* {@inheritdoc}
*/
public function setUp() {
$this->drupal7 = \Mockery::mock('\\Drupal\\service_container\\Legacy\\Drupal7');
$this->string_translation = new StringTranslation($this->drupal7);
}
/**
* @covers ::translate()
*/
public function test_translate() {
}
/**
* @covers ::formatPlural()
*/
public function test_formatPlural() {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StringTranslationTest:: |
protected | property | The Drupal7 service. | |
StringTranslationTest:: |
protected | property | The StringTranslation service. | |
StringTranslationTest:: |
public | function | ||
StringTranslationTest:: |
public | function | @covers ::formatPlural() | |
StringTranslationTest:: |
public | function | @covers ::translate() |