You are here

protected function SimplenewsNewsletter::setUp in Simplenews 7.2

Overrides Entity::setUp().

Prevent failure if the entity system ist not fully loaded.

Overrides Entity::setUp

File

includes/simplenews.entity.inc, line 118
Simplenews entities definitions.

Class

SimplenewsNewsletter
Class for simplenews_newsletter entity.

Code

protected function setUp() {

  // Hack to get arount the not loaded entity system.
  // @todo: fix this and remove hack.
  if (function_exists('entity_get_info')) {
    parent::setUp();
  }
}