silverstripe-testsession/_config.php
Ingo Schommer db290a1cf9 Initial commit
Mostly migrated from 3.0 core, with some documentation adjustments.
Removed the unused dev/tests/sessionloadyaml command.
2012-12-19 14:20:06 +01:00

16 lines
421 B
PHP

<?php
if(DB::get_alternative_database_name()) {
Session::start();
require_once BASE_PATH . '/vendor/autoload.php';
// Register mailer
$this->mailer = new SilverStripe\BehatExtension\Utility\TestMailer();
Email::set_mailer($this->mailer);
Email::send_all_emails_to(null);
// Set mock date and time
$mockDate = Session::get('behat.mockDate');
if($mockDate) {
SS_Datetime::set_mock_now($mockDate);
}
}