You are here

protected function ServicesClientBaseWebTestCase::createSCEvent in Services Client 7.2

Create new services client event.

Return value

event object.

4 calls to ServicesClientBaseWebTestCase::createSCEvent()
ServicesClientErrorWebTestCase::testServicesClientErrors in services_client_error/tests/services_client_error.test
ServicesClientHooksWebTestCase::testServicesClientHooks in tests/services_client.test
ServicesClientWebTestCase::testAddingEvent in tests/services_client.test
Test basic event configuration actions.
ServicesClientWebTestCase::testServicesClientProcessing in tests/services_client.test

File

tests/services_client.test, line 76
Tests for the Administration menu module.

Class

ServicesClientBaseWebTestCase
@file Tests for the Administration menu module.

Code

protected function createSCEvent($event = array()) {
  $name = isset($event['name']) ? $event['name'] : 'event';
  $this
    ->drupalPost('admin/structure/services_client/add', $event + array(
    'title' => $name,
    'name' => $name,
    'connection' => 'fake_connection',
    'entity_type' => 'node',
    'event' => 'save',
    'plugin' => 'EntitySaveHandler',
  ), "Save");
  return $this
    ->loadEvent($name);
}