You are here

public function ServicesResourceNodetests::testEndpointResourceNodeUpdate in Services 7.3

Same name and namespace in other branches
  1. 6.3 tests/functional/ServicesResourceNodeTests.test \ServicesResourceNodetests::testEndpointResourceNodeUpdate()

Testing node_resource Update.

File

tests/functional/ServicesResourceNodeTests.test, line 365
Call the endpoint tests when no authentication is being used.

Class

ServicesResourceNodetests
Run test cases for the endpoint with no authentication turned on.

Code

public function testEndpointResourceNodeUpdate() {

  // Create and log in our privileged user.
  $this->privilegedUser = $this
    ->drupalCreateUser(array(
    'administer services',
    'bypass node access',
  ));
  $this
    ->drupalLogin($this->privilegedUser);
  $this
    ->update_node(SERVICES_NODE_TYPE_INCLUDE);
  $this
    ->update_node(SERVICES_NODE_TYPE_EMPTY);
  $this
    ->update_node(SERVICES_NODE_TYPE_REMOVED);
}