public function ServicesResourceTaxonomyTests::setUp in Services 6.3
Same name and namespace in other branches
- 7.3 tests/functional/ServicesResourceTaxonomyTests.test \ServicesResourceTaxonomyTests::setUp()
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- tests/
functional/ ServicesResourceTaxonomyTests.test, line 24
Class
- ServicesResourceTaxonomyTests
- Run test cases for the endpoint with no authentication turned on.
Code
public function setUp() {
parent::setUp('autoload', 'ctools', 'services', 'rest_server', 'inputstream');
// Set up endpoint.
$this->endpoint = $this
->saveNewEndpoint();
// Set up privileged user and login.
$this->privileged_user = $this
->drupalCreateUser(array(
'administer taxonomy',
));
$this
->drupalLogin($this->privileged_user);
}