示例#1
0
 /**
  * {@inheritdoc}
  */
 protected function loadDumps(array $files, $method = 'load')
 {
     $files = array_map(function ($file) {
         return $this->getDumpDirectory() . '/' . $file;
     }, $files);
     parent::loadDumps($files, $method);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->installEntitySchema('taxonomy_vocabulary');
     $this->installEntitySchema('taxonomy_term');
     $this->installConfig(['taxonomy']);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->loadDumps([$this->getDumpDirectory() . '/System.php']);
     $this->installEntitySchema('user');
     $this->installConfig(['migrate_drupal', 'system']);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $tables = file_scan_directory($this->getDumpDirectory(), '/.php$/', array('recurse' => FALSE));
     $this->loadDumps(array_keys($tables));
     $this->installEntitySchema('user');
     $this->installConfig(['migrate_drupal', 'system']);
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     // Make sure the admin user and a regular user are created.
     $this->container->get('module_handler')->loadInclude('user', 'install');
     $this->installEntitySchema('user');
     user_install();
     /** @var \Drupal\user\Entity\User $admin_account */
     $admin_account = User::load(1);
     $admin_account->setPassword('original');
     $admin_account->save();
     $this->originalPasswords[1] = $admin_account->getPassword();
     /** @var \Drupal\user\Entity\User $user_account */
     $user_account = User::create(['uid' => 2, 'name' => 'original_username', 'mail' => '*****@*****.**', 'pass' => 'original_password']);
     $user_account->save();
     $this->originalPasswords[2] = $user_account->getPassword();
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->loadDumps([$this->getDumpDirectory() . '/System.php']);
 }
示例#7
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->installEntitySchema('user');
     $this->installConfig(['migrate_drupal', 'system']);
 }