Merge pull request #213 from creative-commoners/pulls/4/remove-useless-config

MNT Remove config that does nothing and is confusing.
This commit is contained in:
Guy Sartorelli 2022-04-14 13:24:13 +12:00 committed by GitHub
commit 5257536915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@ use Behat\Gherkin\Node\TableNode;
use Behat\Mink\Session;
use PHPUnit\Framework\Assert;
use SilverStripe\BehatExtension\Utility\TestMailer;
use SilverStripe\Control\Email\Email;
use SilverStripe\Control\Email\Mailer;
use SilverStripe\Core\Injector\Injector;
use Symfony\Component\DomCrawler\Crawler;
@ -51,8 +50,6 @@ class EmailContext implements Context
// to ensure its available both in CLI execution and the tested browser session
$this->mailer = new TestMailer();
Injector::inst()->registerService($this->mailer, Mailer::class);
Email::config()->update("send_all_emails_to", null);
Email::config()->update('admin_email', 'no-reply@example.com');
}
/**