You are here

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

Overrides BrowserTestBase::setUp

File

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

Class

EntityUpdateFunctionsTest
Test Entity Update functions.

Namespace

Drupal\Tests\entity_update\Functional

Code

protected function setUp() {
  parent::setUp();

  // Detele the entity created by install.
  if ($entity = EntityUpdateTestsContentEntity::load(100)) {
    $entity
      ->delete();
  }

  // Initially, Disable the field 'name' => No need to update.
  EntityUpdateTestHelper::fieldDisable('name');
  EntityUpdateTestHelper::fieldDisable('description');
  EntityUpdateTestHelper::fieldSetType('type', NULL);

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