Initial Drupal 11 with DDEV setup
This commit is contained in:
31
vendor/chi-teck/drupal-code-generator/templates/Test/_unit/unit.twig
vendored
Normal file
31
vendor/chi-teck/drupal-code-generator/templates/Test/_unit/unit.twig
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Drupal\Tests\{{ machine_name }}\Unit;
|
||||
|
||||
use Drupal\Tests\UnitTestCase;
|
||||
use PHPUnit\Framework\Attributes\Group;
|
||||
|
||||
/**
|
||||
* Test description.
|
||||
*/
|
||||
#[Group('{{ machine_name }}')]
|
||||
final class {{ class }} extends UnitTestCase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
// @todo Mock required classes here.
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests something.
|
||||
*/
|
||||
public function testSomething(): void {
|
||||
self::assertTrue(TRUE, 'This is TRUE!');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user