public function HttpTest::testHttpHeaders in Migrate Plus 8.5
Same name and namespace in other branches
- 8.4 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_fetcherCode
public function testHttpHeaders(array $definition, array $expected, array $preSeed = []) : void {
$http = new Http($definition, 'http', []);
$this
->assertEquals($expected, $http
->getRequestHeaders());
}