3 namespace Drupal\Tests\drupalmoduleupgrader\Unit\Plugin\DMU\Converter\Functions;
8 * @group DMU.Converter.Functions
9 * @covers \Drupal\drupalmoduleupgrader\Plugin\DMU\Converter\Functions\Disable
11 * Currently, the Disable plugin behaves identically for every function it
12 * handles (unconditionally returns NULL), so I'm only testing one function.
14 class DisableTest extends FunctionCallModifierTestBase {
16 public function setUp() {
18 $this->plugin = $this->getPlugin([], [ 'function' => 'field_create_field' ]);
21 public function testRewrite() {
22 $function_call = Parser::parseExpression('field_create_field($field)');
23 $this->assertNull($this->plugin->rewrite($function_call, $this->target));