You are here

function CommerceRecurringEnableDisableTestCase::assertCommerceRecurringEntity in Commerce Recurring Framework 7.2

Assert that the Recurring entity is present.

Parameters

$exist: Boolean to check for the existance of the product type.

Return value

bool

2 calls to CommerceRecurringEnableDisableTestCase::assertCommerceRecurringEntity()
CommerceRecurringEnableDisableTestCase::testCommerceRecurringDisable in tests/commerce_recurring.test
Test if the module can be correctly disabled.
CommerceRecurringEnableDisableTestCase::testCommerceRecurringEnable in tests/commerce_recurring.test
Test if the module has been correctly enabled.

File

tests/commerce_recurring.test, line 854
Unit tests for the commerce recurring module.

Class

CommerceRecurringEnableDisableTestCase
Test module enabling/disabling functionality.

Code

function assertCommerceRecurringEntity($exist) {
  entity_info_cache_clear();
  $info = entity_get_info('commerce_recurring');
  return $this
    ->assertEqual(!empty($info), $exist, t('Commerce recurring entity type does @not exist', array(
    '@not' => $exist == FALSE ? t('not') : '',
  )));
}