MigrateFileStubTest.php

Same filename in other branches
  1. 8.9.x core/modules/file/tests/src/Kernel/Migrate/MigrateFileStubTest.php
  2. 10 core/modules/file/tests/src/Kernel/Migrate/MigrateFileStubTest.php
  3. 11.x core/modules/file/tests/src/Kernel/Migrate/MigrateFileStubTest.php

Namespace

Drupal\Tests\file\Kernel\Migrate

File

core/modules/file/tests/src/Kernel/Migrate/MigrateFileStubTest.php

View source
<?php

namespace Drupal\Tests\file\Kernel\Migrate;

use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;

/**
 * Test stub creation for file entities.
 *
 * @group file
 */
class MigrateFileStubTest extends MigrateDrupalTestBase {
    use StubTestTrait;
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'file',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->installEntitySchema('file');
    }
    
    /**
     * Tests creation of file stubs.
     */
    public function testStub() {
        $this->performStubTest('file');
    }

}

Classes

Title Deprecated Summary
MigrateFileStubTest Test stub creation for file entities.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.