36 lines
616 B
Twig
36 lines
616 B
Twig
![]() |
<?php
|
||
|
|
||
|
namespace Drupal\Tests\{{ machine_name }}\Kernel;
|
||
|
|
||
|
use Drupal\KernelTests\KernelTestBase;
|
||
|
|
||
|
/**
|
||
|
* Test description.
|
||
|
*
|
||
|
* @group {{ machine_name }}
|
||
|
*/
|
||
|
class {{ class }} extends KernelTestBase {
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public static $modules = ['{{ machine_name }}'];
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
protected function setUp() {
|
||
|
parent::setUp();
|
||
|
// Mock required services here.
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Test callback.
|
||
|
*/
|
||
|
public function testSomething() {
|
||
|
$result = $this->container->get('transliteration')->transliterate('Друпал');
|
||
|
$this->assertEquals('Drupal', $result);
|
||
|
}
|
||
|
|
||
|
}
|