drupalLogin($this->rootUser); $this->drupalGet('upgrade'); $this->assertResponse(200); $this->assertText(t('Upgrade')); $user = $this->createUser(['administer software updates']); $this->drupalLogin($user); $this->drupalGet('upgrade'); $this->assertResponse(403); $this->assertNoText(t('Upgrade')); } }