Skip to content
Snippets Groups Projects
Commit ddcc242a authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Tests

parent b48bcdfb
No related branches found
No related tags found
1 merge request!2Feature/log context
Pipeline #5026 passed
......@@ -15,6 +15,10 @@ class TestClientFactory extends \PHPUnit\Framework\TestCase
private function prepareOptions($isCachedClient = false)
{
$options = Mockery::mock(\WPDesk\ApiClient\Client\ApiClientOptions::class);
$options->shouldReceive('getApiClientClass')
->withAnyArgs()
->andReturn(\WPDesk\ApiClient\Client\ClientImplementation::class);
$options->shouldReceive('getHttpClientClass')
->withAnyArgs()
->andReturn(\WPDesk\HttpClient\Curl\CurlClient::class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment