protected function SmsFrameworkUserSettingsTest::setUp in SMS Framework 8
Same name and namespace in other branches
- 2.x modules/sms_user/tests/src/Functional/SmsFrameworkUserSettingsTest.php \Drupal\Tests\sms_user\Functional\SmsFrameworkUserSettingsTest::setUp()
- 2.1.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 30
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);
}
}