MetatagTokenStatus.php in Metatag 8
File
tests/src/Functional/MetatagTokenStatus.php
View source
<?php
namespace Drupal\Tests\metatag\Functional;
use Drupal\Core\Url;
use Drupal\Tests\BrowserTestBase;
class MetatagTokenStatus extends BrowserTestBase {
public static $modules = [
'metatag',
];
protected $defaultTheme = 'stark';
function testStatusReportTypesWarning() {
$this
->drupalLogin($this->rootUser);
$this
->drupalGet(Url::fromRoute('system.status'));
$this
->assertSession()
->pageTextNotContains('$info[\'types\'][\'metatag');
}
function testStatusReportTokensWarning() {
$this
->drupalLogin($this->rootUser);
$this
->drupalGet(Url::fromRoute('system.status'));
$this
->assertSession()
->pageTextNotContains('$info[\'tokens\'][\'metatag');
}
}