protected function DateRecurPartGridTest::setPartSettings in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/DateRecurPartGridTest.php \Drupal\Tests\date_recur\Kernel\DateRecurPartGridTest::setPartSettings()
- 3.x tests/src/Kernel/DateRecurPartGridTest.php \Drupal\Tests\date_recur\Kernel\DateRecurPartGridTest::setPartSettings()
- 3.0.x tests/src/Kernel/DateRecurPartGridTest.php \Drupal\Tests\date_recur\Kernel\DateRecurPartGridTest::setPartSettings()
Sets parts settings then saves the field config.
Parameters
array $settings: An array of parts settings.
4 calls to DateRecurPartGridTest::setPartSettings()
- DateRecurPartGridTest::testAllowedAll in tests/
src/ Kernel/ DateRecurPartGridTest.php - Tests when nothing is allowed.
- DateRecurPartGridTest::testAllowedNothing in tests/
src/ Kernel/ DateRecurPartGridTest.php - Tests when nothing is allowed.
- DateRecurPartGridTest::testAllowedSomeParts in tests/
src/ Kernel/ DateRecurPartGridTest.php - Tests when some parts for a frequency is allowed.
- DateRecurPartGridTest::testFrequency in tests/
src/ Kernel/ DateRecurPartGridTest.php - Tests when a frequency is allowed or disallowed.
File
- tests/
src/ Kernel/ DateRecurPartGridTest.php, line 224
Class
- DateRecurPartGridTest
- Tests field validation failures as a result part grids.
Namespace
Drupal\Tests\date_recur\KernelCode
protected function setPartSettings(array $settings) {
$this->fieldConfig
->setSetting('parts', $settings)
->save();
}