protected function SubscriptionControllerTest::unsubscribe in Organic groups 8
Invoke the unsubscribe method.
4 calls to SubscriptionControllerTest::unsubscribe()
- SubscriptionControllerTest::testBlockedMember in tests/
src/ Unit/ SubscriptionControllerTest.php - Tests blocked member trying to unsubscribe from group.
- SubscriptionControllerTest::testGroupManager in tests/
src/ Unit/ SubscriptionControllerTest.php - Tests group manager trying to unsubscribe from group.
- SubscriptionControllerTest::testMember in tests/
src/ Unit/ SubscriptionControllerTest.php - Tests active and pending members trying to unsubscribe from group.
- SubscriptionControllerTest::testNotMember in tests/
src/ Unit/ SubscriptionControllerTest.php - Tests non-member trying to unsubscribe from group.
File
- tests/
src/ Unit/ SubscriptionControllerTest.php, line 282
Class
- SubscriptionControllerTest
- Tests the subscription controller.
Namespace
Drupal\Tests\og\UnitCode
protected function unsubscribe() {
$controller = new SubscriptionController($this->ogAccess
->reveal(), $this->messenger
->reveal(), $this->entityTypeManager
->reveal());
$controller
->unsubscribe($this->group
->reveal());
}