function AccountTakeoverGadgetChainTest::setUp

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/User/AccountTakeoverGadgetChainTest.php, line 37

Class

AccountTakeoverGadgetChainTest
Tests protection against SA-CORE-2024-007 Gadget Chain.

Namespace

Drupal\KernelTests\Core\User

Code

protected function setUp() : void {
    parent::setUp();
    // Views and some of its requirements need to be at least partially set up
    // in order for the payload to work.
    $this->installEntitySchema('node');
    $this->installEntitySchema('user');
    $this->installEntitySchema('view');
    $this->installConfig([
        'node',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.