You are here

public function HttpTest::testHttpHeaders in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Kernel/Plugin/migrate_plus/data_fetcher/HttpTest.php \Drupal\Tests\migrate_plus\Kernel\Plugin\migrate_plus\data_fetcher\HttpTest::testHttpHeaders()

Test http headers option.

@dataProvider headerDataProvider

File

tests/src/Kernel/Plugin/migrate_plus/data_fetcher/HttpTest.php, line 21

Class

HttpTest
Class HttpTest.

Namespace

Drupal\Tests\migrate_plus\Kernel\Plugin\migrate_plus\data_fetcher

Code

public function testHttpHeaders(array $definition, array $expected, array $preSeed = []) {
  $http = new Http($definition, 'http', []);
  $this
    ->assertEquals($expected, $http
    ->getRequestHeaders());
}