You are here

public function MockHttpClient::head in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/MockHttpClient.php \Drupal\Tests\video_embed_field\Kernel\MockHttpClient::head()

Patch up a magic method call.

File

tests/src/Kernel/MockHttpClient.php, line 56

Class

MockHttpClient
An exceptional HTTP client mock.

Namespace

Drupal\Tests\video_embed_field\Kernel

Code

public function head($url) {
  throw new \Exception(static::EXCEPTION_MESSAGE);
}