- public function testBlockRendering() {
- $entity = Block::load('test_block');
-
- $build = \Drupal::entityTypeManager()
- ->getViewBuilder($entity->getEntityTypeId())
- ->view($entity);
-
- $content = $this
- ->container
- ->get('renderer')
- ->renderRoot($build);
-
- $this->assertTrue(
- strpos(strip_tags($content), 'Powered by Drupal') !== FALSE,
- 'Valid block content was found.'
- );
+ public function testSomething() {
+ $result = $this->container->get('transliteration')->transliterate('Друпал');
+ $this->assertEquals('Drupal', $result);