TokenReplaceKernelTestBase.php in Drupal 10        
                          
                  
                        
  
  
  
  
File
  core/modules/system/tests/src/Kernel/Token/TokenReplaceKernelTestBase.php
  
    View source  
  <?php
namespace Drupal\Tests\system\Kernel\Token;
use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;
abstract class TokenReplaceKernelTestBase extends EntityKernelTestBase {
  
  protected $interfaceLanguage;
  
  protected $tokenService;
  
  protected static $modules = [
    'system',
  ];
  protected function setUp() : void {
    parent::setUp();
    
    $this
      ->installConfig([
      'system',
    ]);
    $this->interfaceLanguage = \Drupal::languageManager()
      ->getCurrentLanguage();
    $this->tokenService = \Drupal::token();
  }
}