public function GenericTest::testRewriteInvalidPropertyAsGetter in Drupal 7 to 8/9 Module Upgrader 8
File
- tests/
src/ Unit/ Plugin/ DMU/ Rewriter/ GenericTest.php, line 45
Class
- GenericTest
- @group DMU.Rewriter @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Rewriter\Generic
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\RewriterCode
public function testRewriteInvalidPropertyAsGetter() {
/** @var \Pharborist\Objects\ObjectPropertyNode $expr */
$expr = Parser::parseExpression('$node->baz');
$rewritten = $this->plugin
->rewriteAsGetter($expr, 'baz');
$this
->assertNull($rewritten);
}