protected function ProcessTestBase::setSetting in Media Migration 8
Sets an in-memory Settings variable.
See of KernelTestBase::setSetting().
Parameters
string $name: The name of the setting to set.
bool|string|int|array|null $value: The value to set. Note that array values are replaced entirely; use \Drupal\Core\Site\Settings::get() to perform custom merges.
3 calls to ProcessTestBase::setSetting()
- ImgTagToEmbedFilterTest::setUp in tests/
src/ Unit/ Plugin/ migrate/ process/ ImgTagToEmbedFilterTest.php - ImgTagToEmbedFilterTest::testTransformToEntityEmbed in tests/
src/ Unit/ Plugin/ migrate/ process/ ImgTagToEmbedFilterTest.php - Tests transform to entity embed.
- MediaWysiwygFilterTest::setUp in tests/
src/ Unit/ Plugin/ migrate/ process/ MediaWysiwygFilterTest.php
File
- tests/
src/ Unit/ Plugin/ migrate/ process/ ProcessTestBase.php, line 112
Class
- ProcessTestBase
- Base class for testing Media Migration's migrate process plugins.
Namespace
Drupal\Tests\media_migration\Unit\Plugin\migrate\processCode
protected function setSetting($name, $value) {
$settings = Settings::getInstance() ? Settings::getAll() : [];
$settings[$name] = $value;
new Settings($settings);
}