You are here

function WSClientRESTTestCase::testServiceInvocation in Web service client 7

Tests invoking the google translation service.

File

wsclient_examples/wsclient_examples.test, line 84
Web service client SOAP/REST Tests.

Class

WSClientRESTTestCase

Code

function testServiceInvocation() {
  $service = wsclient_service_load('twitter_search');
  $result = $service
    ->search('drupal');
  $this
    ->assertEqual($result['query'], 'drupal', 'REST service invocation was successful.');
}