You are here

public function ServicesModuleTests::testServicesHelp in Services 6.3

Test services_help function.

File

tests/unit/TestServicesModule.test, line 49
Unit tests for the functions in the 'services.module' file.

Class

ServicesModuleTests
Run test cases for the functions in the 'services.module' file.

Code

public function testServicesHelp() {
  $result = services_help('admin/help#services', array());
  $message = t('There should be a help message returned from services help.');
  $this
    ->assertNotNull($result, $message);
  $result = services_help('admin/build/services', array());
  $message = t('There should be help text when going to the services endpoint administration page.');
  $this
    ->assertNotNull($result, $message);
}