forked from silvershop/silvershop-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OrderProcessor using the wrong config.
Minor improvement in unit-test that resets any existing config in OrderEmailNotifierTest
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 3,7 @@ | |
namespace SilverShop\Tests\Checkout; | ||
|
||
use SilverShop\Checkout\OrderEmailNotifier; | ||
use SilverShop\Extension\ShopConfigExtension; | ||
use SilverShop\Model\Order; | ||
use SilverStripe\Control\Email\Email; | ||
use SilverStripe\Core\Config\Config; | ||
|
@@ -29,6 30,8 @@ public function setUp() | |
{ | ||
parent::setUp(); | ||
Config::modify()->set(Email::class, 'admin_email', '[email protected]'); | ||
// clear any setting that might have been made via shop-config | ||
Config::modify()->remove(ShopConfigExtension::class, 'email_from'); | ||
$this->order = $this->objFromFixture(Order::class, 'paid'); | ||
$this->notifier = OrderEmailNotifier::create($this->order); | ||
} | ||
|