MailgunKernelTestBase.php in Mailgun 8
File
tests/src/Kernel/MailgunKernelTestBase.php
View source
<?php
namespace Drupal\Tests\mailgun\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Drupal\mailgun\MailgunHandlerInterface;
abstract class MailgunKernelTestBase extends KernelTestBase {
protected static $modules = [
'mailgun',
];
protected function setUp() {
parent::setUp();
$this
->installConfig([
'mailgun',
]);
}
protected function setConfigValue($config_name, $config_value) {
$config_factory = $this->container
->get('config.factory');
$config_factory
->getEditable(MailgunHandlerInterface::CONFIG_NAME)
->set($config_name, $config_value)
->save();
}
}