You are here

function clients_test_clients_default_connections in Web Service Clients 7.3

Implements hook_clients_default_connections().

File

tests/clients_test/clients_test.module, line 26
clients_test.module Provides a dummy connection type and connection.

Code

function clients_test_clients_default_connections() {
  $items = array();
  $items['dummy_connection'] = entity_import('clients_connection', '{
    "name" : "dummy_connection",
    "endpoint" : "https:\\/\\/example.com\\/services\\/",
    "configuration" : {
      "debug" : 0,
      "credentials_storage" : "connection_configuration",
      "username" : "user",
      "password" : "password"
    },
    "label" : "Dummy connection",
    "type" : "clients_dummy"
  }');
  return $items;
}