You are here

protected function SmsFrameworkUserAccountRegistrationServiceTest::countUsers in SMS Framework 2.1.x

Same name and namespace in other branches
  1. 8 modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php \Drupal\Tests\sms_user\Kernel\SmsFrameworkUserAccountRegistrationServiceTest::countUsers()
  2. 2.x modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php \Drupal\Tests\sms_user\Kernel\SmsFrameworkUserAccountRegistrationServiceTest::countUsers()

Count number of registered users.

Return value

int Number of users in database.

9 calls to SmsFrameworkUserAccountRegistrationServiceTest::countUsers()
SmsFrameworkUserAccountRegistrationServiceTest::testIncomingPatternHasReply in modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php
Ensure reply sent if turned on.
SmsFrameworkUserAccountRegistrationServiceTest::testIncomingPatternNoEmail in modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php
Test if a user is created despite no email address.
SmsFrameworkUserAccountRegistrationServiceTest::testIncomingPatternNoPlaceholders in modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php
Test if a user is created despite no placeholders.
SmsFrameworkUserAccountRegistrationServiceTest::testIncomingPatternNoReply in modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php
Ensure no reply sent if turned off.
SmsFrameworkUserAccountRegistrationServiceTest::testUnrecognisedCreateUserPhoneNumberRecognised in modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php
Test a user is not created if the sender phone number is already used.

... See full list

File

modules/sms_user/tests/src/Kernel/SmsFrameworkUserAccountRegistrationServiceTest.php, line 542

Class

SmsFrameworkUserAccountRegistrationServiceTest
Tests account registration.

Namespace

Drupal\Tests\sms_user\Kernel

Code

protected function countUsers() {
  return count(User::loadMultiple());
}