You are here

public function HttpHelpersTest::testFindLinkHeader in Feeds 8.3

Tests finding relation links in several headers.

@dataProvider httpResponses

File

tests/src/Unit/Component/HttpHelpersTest.php, line 19

Class

HttpHelpersTest
@coversDefaultClass \Drupal\feeds\Component\HttpHelpers @group feeds

Namespace

Drupal\Tests\feeds\Unit\Component

Code

public function testFindLinkHeader($headers, $rel, $expected) {
  $this
    ->assertSame($expected, HttpHelpers::findLinkHeader($headers, $rel));
}