diff --git a/core/modules/system/src/Form/FormTokenTest.php b/core/modules/system/src/Form/FormTokenTest.php index 066a99c..be38d1e 100644 --- a/core/modules/system/src/Form/FormTokenTest.php +++ b/core/modules/system/src/Form/FormTokenTest.php @@ -9,20 +9,29 @@ use Drupal\simpletest\WebTestBase; +/** + * Report form token validation errors in the watchdog. + * + * @group Form + */ class FormTokenTest extends WebTestBase { + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('form_test', 'dblog'); - public static function getInfo() { - return array( - 'name' => 'Form token validation', - 'description' => 'Tests validation of Form API tokens.', - 'group' => 'Form API', - ); - } + /** + * A normal user. + * + * @var \Drupal\user\UserInterface + */ + protected $webUser; + + protected function setUp() { + parent::setUp(); - function setUp() { - parent::setUp(array('form_test', 'dblog')); - // We need to log in as form tokens aren't validated for anonymous users as - // they are shared in cached pages. $this->web_user = $this->drupalCreateUser(array('access content')); $this->drupalLogin($this->web_user); }