protected function SmsFrameworkUserSettingsTest::setUp in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 modules/sms_user/tests/src/Functional/SmsFrameworkUserSettingsTest.php \Drupal\Tests\sms_user\Functional\SmsFrameworkUserSettingsTest::setUp()
- 2.x modules/sms_user/tests/src/Functional/SmsFrameworkUserSettingsTest.php \Drupal\Tests\sms_user\Functional\SmsFrameworkUserSettingsTest::setUp()
Overrides SmsFrameworkBrowserTestBase::setUp
File
- modules/
sms_user/ tests/ src/ Functional/ SmsFrameworkUserSettingsTest.php, line 37
Class
- SmsFrameworkUserSettingsTest
- Tests SMS User settings user interface.
Namespace
Drupal\Tests\sms_user\FunctionalCode
protected function setUp() {
parent::setUp();
$account = $this
->drupalCreateUser([
'administer smsframework',
]);
$this
->drupalLogin($account);
// Build list of days.
$timestamp = strtotime('next Sunday');
while (($day = strtolower(strftime('%A', $timestamp))) && !in_array($day, $this->days)) {
$this->days[] = $day;
$timestamp = strtotime('+1 day', $timestamp);
}
}