protected function SimplenewsSubscribeTest::countSubscribers in Simplenews 8
Gets the number of subscribers entities.
1 call to SimplenewsSubscribeTest::countSubscribers()
- SimplenewsSubscribeTest::testSubscribeAuthenticated in src/
Tests/ SimplenewsSubscribeTest.php - testSubscribeAuthenticated
File
- src/
Tests/ SimplenewsSubscribeTest.php, line 930 - Simplenews subscribe test functions.
Class
- SimplenewsSubscribeTest
- (un)subscription of anonymous and authenticated users.
Namespace
Drupal\simplenews\TestsCode
protected function countSubscribers() {
return \Drupal::entityQuery('simplenews_subscriber')
->count()
->execute();
}