MigrateFileStubTest.php

Same filename and directory in other branches
  1. 9 core/modules/file/tests/src/Kernel/Migrate/MigrateFileStubTest.php
  2. 8.9.x core/modules/file/tests/src/Kernel/Migrate/MigrateFileStubTest.php
  3. 10 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

declare (strict_types=1);
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() : void {
        $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.