AdminMetaTagTest.php in Drupal 9        
                          
                  
                        
  
  
  
  
File
  core/modules/system/tests/src/Functional/System/AdminMetaTagTest.php
  
    View source  
  <?php
namespace Drupal\Tests\system\Functional\System;
use Drupal\Tests\BrowserTestBase;
class AdminMetaTagTest extends BrowserTestBase {
  
  protected $defaultTheme = 'stark';
  
  public function testMetaTag() {
    list($version, ) = explode('.', \Drupal::VERSION);
    $string = '<meta name="Generator" content="Drupal ' . $version . ' (https://www.drupal.org)" />';
    $this
      ->drupalGet('node');
    $this
      ->assertSession()
      ->responseContains($string);
  }
}