diff --git a/tests/src/FunctionalJavascript/IntegerWeightTest.php b/tests/src/FunctionalJavascript/IntegerWeightTest.php index d9e18ef08..1bacf2c86 100644 --- a/tests/src/FunctionalJavascript/IntegerWeightTest.php +++ b/tests/src/FunctionalJavascript/IntegerWeightTest.php @@ -89,7 +89,8 @@ public function setUp(): void { 'name' => 'Repository Item', ]); - $this->drupalLogin($this->createUser(['edit any repo_item content'], 'test', TRUE)); + $account = $this->createUser(['edit any repo_item content'], 'test', TRUE); + $this->drupalLogin($account); $fieldStorage = FieldStorageConfig::create([