public function SubscriptionControllerTest::testSubscriptionInWrongState in Feeds 8.3
@covers ::handleSubscribe
File
- tests/
src/ Unit/ Controller/ SubscriptionControllerTest.php, line 191
Class
- SubscriptionControllerTest
- @coversDefaultClass \Drupal\feeds\Controller\SubscriptionController @group feeds
Namespace
Drupal\Tests\feeds\Unit\ControllerCode
public function testSubscriptionInWrongState() {
$this->subscription
->getState()
->willReturn('unsubscribed');
$this
->expectException(NotFoundHttpException::class);
$this->controller
->subscribe(1, 'valid_token', $this->request);
}