You are here

protected function ServicesClientBaseWebTestCase::removeEventMapping in Services Client 7.2

Remove existing event mapping row.

Parameters

ServicesClientEvent $event: Event from which should be condition removed.

string $uuid: Mapping UUID.

1 call to ServicesClientBaseWebTestCase::removeEventMapping()
ServicesClientWebTestCase::testAddingEvent in tests/services_client.test
Test basic event configuration actions.

File

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

Class

ServicesClientBaseWebTestCase
@file Tests for the Administration menu module.

Code

protected function removeEventMapping($event, $uuid) {
  $result = $this
    ->removeEventPlugin($event, 'mapping', $uuid);
  if ($result) {
    $this
      ->pass("Mapping {$uuid} was removed from event {$event->name}.");
  }
  else {
    $this
      ->fail("Error when removing mapping {$uuid} from event {$event->name}.");
  }
}