You are here

protected function SimplenewsSubscriber::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 171
Simplenews entities definitions.

Class

SimplenewsSubscriber
Class for simplenews_subscriber 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();
  }
}