You are here

protected function CommerceMessageTestBase::assertBundle in Commerce Message 7

Asserts if a Message entity's bundle matches.

Parameters

\Message $message: The Message entity.

string $bundle: The bundle.

1 call to CommerceMessageTestBase::assertBundle()
CommerceMessageOrderHistoryTest::testOrderHistory in ./commerce_message.test
Test order history programmatically.

File

./commerce_message.test, line 83

Class

CommerceMessageTestBase

Code

protected function assertBundle(Message $message, $bundle) {
  $this
    ->assertEqual($bundle, $message
    ->bundle(), t('Message type @expected expected, got: @actual', array(
    '@expected' => $bundle,
    '@actual' => $message
      ->bundle(),
  )));
}