You are here

public function SmsFrameworkUserActiveHoursServiceTest::testFindNextTimeNoRanges in SMS Framework 8

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

Test no next time when no ranges are set.

File

modules/sms_user/tests/src/Kernel/SmsFrameworkUserActiveHoursServiceTest.php, line 156

Class

SmsFrameworkUserActiveHoursServiceTest
Tests active hours service.

Namespace

Drupal\Tests\sms_user\Kernel

Code

public function testFindNextTimeNoRanges() {
  $user = $this
    ->createUser();
  $this
    ->assertFalse($this->activeHoursService
    ->findNextTime($user));
}