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