public function ContainsLogicFilterTest::testIfIsLogic in Drupal 7 to 8/9 Module Upgrader 8
File
- tests/
src/ Unit/ Utility/ Filter/ ContainsLogicFilterTest.php, line 32
Class
- ContainsLogicFilterTest
- @group DMU.Utility.Filter
Namespace
Drupal\Tests\drupalmoduleupgrader\Unit\Utility\FilterCode
public function testIfIsLogic() {
$this
->assertTrue(Parser::parseSnippet('function foo() { if (true) return TRUE; }')
->is($this->filter));
}