You are here

public function ContainsLogicFilterTest::testObjectMethodCallIsLogic in Drupal 7 to 8/9 Module Upgrader 8

File

tests/src/Unit/Utility/Filter/ContainsLogicFilterTest.php, line 54

Class

ContainsLogicFilterTest
@group DMU.Utility.Filter

Namespace

Drupal\Tests\drupalmoduleupgrader\Unit\Utility\Filter

Code

public function testObjectMethodCallIsLogic() {
  $this
    ->assertTrue(Parser::parseSnippet('function foo() { return \\Drupal::config()->get("foo.settings"); }')
    ->is($this->filter));
}