You are here

protected function EntityUpdateProgUpTest::setUp in Entity Update 2.0.x

Overrides BrowserTestBase::setUp

File

tests/src/Functional/EntityUpdateProgUpTest.php, line 35

Class

EntityUpdateProgUpTest
Entity Update module, Update entities programmatically test.

Namespace

Drupal\Tests\entity_update\Functional

Code

protected function setUp() {

  // Initialisation process.
  parent::setUp();

  // Set initial fields status (1 enebale, 1 disable).
  EntityUpdateTestHelper::fieldDisable('name');
  EntityUpdateTestHelper::fieldEnable('description');
  EntityUpdateTestHelper::fieldSetType('type', NULL);

  // Update.
  EntityUpdate::basicUpdate();

  // Create entities.
  EntityUpdateTestsContentEntity::create([
    'id' => 1,
  ])
    ->save();

  // Disable drush print.
  EntityUpdatePrint::setEchoPrintEnable(FALSE);
}