You are here

public function FunctionCallArgumentFilterTest::testPass in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Utility/Filter/FunctionCallArgumentFilterTest.php, line 35

Class

FunctionCallArgumentFilterTest
@group DMU.Utility.Filter

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Filter

Code

public function testPass() {
  $this
    ->assertTrue(Parser::parseExpression('baz($foo, 1, 2, "bar")')
    ->is($this->filter));
  $this
    ->assertTrue(Parser::parseExpression('baz(1, 2, $foo, "bar")')
    ->is($this->filter));
}