function CoderSecurityTest::testSecurityBlockSubject in Coder 6.2
File
- tests/
coder_security.test, line 245
Class
Code
function testSecurityBlockSubject() {
$this
->assertCoderPass(" function mymodule_block() {\n \$block['subject'] = 'title';\n}");
$this
->assertCoderPass(" function mymodule_block() {\n \$block['subject'] = check_plain(\$title);\n}");
$this
->assertCoderFail(" function mymodule_block() {\n \$block['subject'] = \$title;\n}");
$this
->assertCoderFail(" function mymodule_block() {\n \$block = array(\n 'subject' => \$title,\n );\n}");
}