You are here

class StringTranslationTest 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

@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\StringTranslation
View 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

Namesort descending Modifiers Type Description Overrides
StringTranslationTest::$drupal7 protected property The Drupal7 service.
StringTranslationTest::$string_translation protected property The StringTranslation service.
StringTranslationTest::setUp public function
StringTranslationTest::test_formatPlural public function @covers ::formatPlural()
StringTranslationTest::test_translate public function @covers ::translate()