Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										36
									
								
								vendor/chi-teck/drupal-code-generator/templates/Test/_kernel/kernel.twig
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								vendor/chi-teck/drupal-code-generator/templates/Test/_kernel/kernel.twig
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,36 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
declare(strict_types=1);
 | 
			
		||||
 | 
			
		||||
namespace Drupal\Tests\{{ machine_name }}\Kernel;
 | 
			
		||||
 | 
			
		||||
use Drupal\KernelTests\KernelTestBase;
 | 
			
		||||
use PHPUnit\Framework\Attributes\Group;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Test description.
 | 
			
		||||
 */
 | 
			
		||||
#[Group('{{ machine_name }}')]
 | 
			
		||||
final class {{ class }} extends KernelTestBase {
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * {@inheritdoc}
 | 
			
		||||
   */
 | 
			
		||||
  protected static $modules = ['{{ machine_name }}'];
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * {@inheritdoc}
 | 
			
		||||
   */
 | 
			
		||||
  protected function setUp(): void {
 | 
			
		||||
    parent::setUp();
 | 
			
		||||
    // Mock necessary services here.
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Test callback.
 | 
			
		||||
   */
 | 
			
		||||
  public function testSomething(): void {
 | 
			
		||||
    self::assertTrue(TRUE);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user