drupalGetContent(). * * @see \DrupalWebTestCase::drupalGet() * @see \DrupalWebTestCase::drupalCreateUser() */ protected function getWithPermissions(array $permissions, $path, array $options = array(), array $headers = array()) { $this->drupalGet($path, $options, $headers); $this->assertResponse(403); $this->drupalLogin($this->drupalCreateUser($permissions)); $this->drupalGet($path, $options, $headers); $this->assertResponse(200); } }