public function SubscriptionControllerTest::testSubscriptionMissingKv in Feeds 8.3
@covers ::handleUnsubscribe
File
- tests/
src/ Unit/ Controller/ SubscriptionControllerTest.php, line 200
Class
- SubscriptionControllerTest
- @coversDefaultClass \Drupal\feeds\Controller\SubscriptionController @group feeds
Namespace
Drupal\Tests\feeds\Unit\ControllerCode
public function testSubscriptionMissingKv() {
$this->request->query
->set('hub_mode', 'unsubscribe');
$this->request->query
->set('hub_topic', 'http://example.com/topic');
$this
->expectException(NotFoundHttpException::class);
$this->controller
->subscribe(1, 'valid_token', $this->request);
}