You are here

function ServicesXMLRPCTestCase::testPrecedence in Services 7.3

Precedence CRUD methods > Actions > Relations > Targeted Actions

See also

http://drupal.org/node/1016350

File

tests/functional/ServicesXMLRPCTests.test, line 80

Class

ServicesXMLRPCTestCase

Code

function testPrecedence() {
  $args = array(
    'arg1' => $this
      ->randomName(),
  );
  $result = $this
    ->servicesXMLRPC('services_test.retrieve', $args);
  $this
    ->assertEqual($result['body'], 'CRUD Retrieve ' . $args['arg1'], 'XMLRPC precedence works properly (CRUD higher priority than action).', 'XMLRPC: Precedence');
}