Skip to content

Commit

Permalink
[SR-78] - fix request with extension not html and content-type text/html
Browse files Browse the repository at this point in the history
  • Loading branch information
mbiencinto committed Dec 18, 2020
1 parent aeb0b11 commit acc6752
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/Unit/EventSubscriber/AmpOptimizerSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ public function testNotAmpRequest()

$event = $this->getEventNotAmpRequestMocked('text/html', '');
$instance->onKernelResponse($event);


}

/**
Expand Down Expand Up @@ -127,8 +125,7 @@ private function getEventNotAmpRequestMocked(
$contentType = 'text/html',
$content = '<html ⚡></html>',
$uri = '/segment/doc'
): ResponseEvent
{
): ResponseEvent {
$headers = $this->prophesize(ParameterBag::class);
$headers->get(Argument::exact('Content-type'))->willReturn($contentType);

Expand Down

0 comments on commit acc6752

Please sign in to comment.