function AssignOwnerNodeTest::testAssignOwnerNode

Tests deprecation of \Drupal\node\Plugin\Action\AssignOwnerNodeTest.

File

core/modules/node/tests/src/Unit/Action/AssignOwnerNodeTest.php, line 20

Class

AssignOwnerNodeTest
@group node @group legacy

Namespace

Drupal\Tests\node\Unit\Action

Code

public function testAssignOwnerNode() : void {
    $this->expectDeprecation('Drupal\\node\\Plugin\\Action\\AssignOwnerNode is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\action\\Plugin\\Action\\AssignOwnerNode instead. See https://www.drupal.org/node/3424506');
    $this->assertIsObject(new AssignOwnerNode([], 'foo', [], $this->prophesize(Connection::class)
        ->reveal()));
}

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