function EntityFormTest::testSet

Tests that __set triggers proper deprecation errors.

@covers ::__set

@group legacy

@expectedDeprecation EntityForm::entityManager is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use EntityForm::entityTypeManager instead. See https://www.drupal.org/node/2549139

File

core/tests/Drupal/Tests/Core/Entity/EntityFormTest.php, line 253

Class

EntityFormTest
@coversDefaultClass \Drupal\Core\Entity\EntityForm @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

public function testSet() {
    $this->entityForm->entityManager = $this->prophesize(EntityManager::class)
        ->reveal();
}

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