getFixtureFilePath example

use NodeMigrateTypeTestTrait;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    // Add a node classic migrate table to the destination site so that tests     // run by default with the classic node migrations.     $this->makeNodeMigrateMapTable(NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '7');
    $this->loadFixture($this->getFixtureFilePath());
  }

  /** * Gets the path to the fixture file. */
  protected function getFixtureFilePath() {
    return __DIR__ . '/../../../../fixtures/drupal7.php';
  }

  /** * Executes all user migrations. * * @param bool $include_pictures * (optional) If TRUE, migrates user pictures. Defaults to TRUE. */
'text',
  ];

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    // Add a node classic migrate table to the destination site so that tests     // run by default with the classic node migrations.     $this->makeNodeMigrateMapTable(NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '6');
    $this->loadFixture($this->getFixtureFilePath());
  }

  /** * Gets the path to the fixture file. */
  protected function getFixtureFilePath() {
    return __DIR__ . '/../../../fixtures/drupal6.php';
  }

  /** * Executes all user migrations. * * @param bool $include_pictures * If TRUE, migrates user pictures. */
use NodeMigrateTypeTestTrait;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    // Add a node classic migrate table to the destination site so that tests     // run by default with the classic node migrations.     $this->makeNodeMigrateMapTable(NodeMigrateType::NODE_MIGRATE_TYPE_CLASSIC, '7');
    $this->loadFixture($this->getFixtureFilePath());
  }

  /** * Gets the path to the fixture file. */
  protected function getFixtureFilePath() {
    return __DIR__ . '/../../../fixtures/drupal7.php';
  }

  /** * Executes all field migrations. */
Home | Imprint | This part of the site doesn't use cookies.