You are here

public function SubscriptionControllerTest::testWrongMode in Feeds 8.3

@covers ::subscribe

File

tests/src/Unit/Controller/SubscriptionControllerTest.php, line 157

Class

SubscriptionControllerTest
@coversDefaultClass \Drupal\feeds\Controller\SubscriptionController @group feeds

Namespace

Drupal\Tests\feeds\Unit\Controller

Code

public function testWrongMode() {
  $this->request->query
    ->set('hub_mode', 'woops');
  $this
    ->expectException(NotFoundHttpException::class);
  $this->controller
    ->subscribe(1, 'valid_token', $this->request);
}