You are here

protected function ServicesClientBaseWebTestCase::saveEventConfiguration in Services Client 7.2

Save event configuration. Saves any configuration changes to permanent storage.

Parameters

ServicesClientEvent $event: Event that should be saved.

array $config: Optional event configuration on /configure page

bool $refresh: Weather original event should be refreshed.

4 calls to ServicesClientBaseWebTestCase::saveEventConfiguration()
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 284
Tests for the Administration menu module.

Class

ServicesClientBaseWebTestCase
@file Tests for the Administration menu module.

Code

protected function saveEventConfiguration(&$event, $config = array(), $refresh = FALSE) {
  $this
    ->drupalPost($event
    ->getHandler()
    ->getUrl('configure'), $config, "Save");
  if ($refresh) {
    $event = $this
      ->loadEvent($event->name, TRUE);
  }
}