public function testExclusiveTax()
 {
     FlatTaxModifier::config()->exclusive = true;
     $this->cart->clear();
     $this->cart->add($this->mp3player);
     $order = $this->cart->current();
     $order->calculate();
     $modifier = $order->Modifiers()->filter('ClassName', 'FlatTaxModifier')->first();
     $this->assertEquals(30, $modifier->Amount);
     $this->assertEquals(230, $order->GrandTotal());
 }
 public function setUp()
 {
     parent::setUp();
     ShopTest::setConfiguration();
     Order::config()->modifiers = array("FlatTaxModifier");
     FlatTaxModifier::config()->rate = 0.25;
     FlatTaxModifier::config()->name = "GST";
     $this->mp3player = $this->objFromFixture('Product', 'mp3player');
     $this->socks = $this->objFromFixture('Product', 'socks');
     $this->mp3player->publish('Stage', 'Live');
     $this->socks->publish('Stage', 'Live');
 }