You are here

public function Drupal7::testHookUserInsert in Realistic Dummy Content 7.2

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Drupal7.php \Drupal\realistic_dummy_content_api\Framework\Drupal7::testHookUserInsert()

Tests $this->hookUserInsert().

File

api/src/Framework/Drupal7.php, line 419

Class

Drupal7
Drupal 7-specific code.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function testHookUserInsert() {
  self::clearTestFlag('hookUserInsert called');
  $this
    ->createEntity(array(
    'entity_type' => 'user',
  ));
  return !static::getTestFlag('hookUserInsert called');
}