You are here

public function CommerceMessageTokenTest::testOrderSummaryToken in Commerce Message 7

File

./commerce_message.test, line 399

Class

CommerceMessageTokenTest

Code

public function testOrderSummaryToken() {
  $order = $this
    ->createDummyOrder();
  $message = message_create('commerce_order_order_confirmation', array(), $this->store_admin);
  $message
    ->wrapper()->message_commerce_order = $order;
  $message
    ->save();
  $this
    ->assertTrue(isset($message->arguments['!order-summary']));
  $message = message_create('commerce_order_admin_order_confirmation', array(), $this->store_admin);
  $message
    ->wrapper()->message_commerce_order = $order;
  $message
    ->save();
  $this
    ->assertTrue(isset($message->arguments['!order-summary']));
}