You are here

protected function HttpClientTest::getServiceApiInfo in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/HttpClientTest.php \Drupal\Tests\http_client_manager\Unit\HttpClientTest::getServiceApiInfo()

Get Service api info.

Return value

array An array of services api info.

2 calls to HttpClientTest::getServiceApiInfo()
HttpClientTest::setUp in tests/src/Unit/HttpClientTest.php
HttpClientTest::testGetApi in tests/src/Unit/HttpClientTest.php
Tests HttpClient::getApi().

File

tests/src/Unit/HttpClientTest.php, line 165

Class

HttpClientTest
Class HttpClientTest.

Namespace

Drupal\Tests\http_client_manager\Unit

Code

protected function getServiceApiInfo() {
  return [
    "title" => "TestApi",
    "api_path" => "api/test_api.json",
    "base_url" => "http://jsonplaceholder.typicode.com",
    "config" => [],
    'id' => "mock",
    'provider' => "mock",
    'source' => __DIR__ . "/api/test_api.json",
  ];
}