You are here

function CoderReviewUpgrade6xTest::testUpgrade6xNodeAPI in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xNodeAPI()

???

File

coder_review/tests/coder_review_6x.test, line 259

Class

CoderReviewUpgrade6xTest
???

Code

function testUpgrade6xNodeAPI() {
  $this
    ->assertCoderReviewFail("  function mymodule_nodeapi() {\n  switch (\$op) {\n    case 'submit': return;\n  }\n}");
  $this
    ->assertCoderReviewFail("  function mymodule_nodeapi() {\n  if (\$op == 'submit') {\n  }\n}");
}