You are here

public function HttpFetcherTest::testFetch304 in Feeds 8.3

Tests fetching from a HTTP source that returns a 304 (not modified).

@covers ::fetch

File

tests/src/Unit/Feeds/Fetcher/HttpFetcherTest.php, line 97

Class

HttpFetcherTest
@coversDefaultClass \Drupal\feeds\Feeds\Fetcher\HttpFetcher @group feeds

Namespace

Drupal\Tests\feeds\Unit\Feeds\Fetcher

Code

public function testFetch304() {
  $this->mockHandler
    ->append(new Response(304));
  $this
    ->expectException(EmptyFeedException::class);
  $this->fetcher
    ->fetch($this->feed
    ->reveal(), new State());
}