You are here

function CoderReviewUpgrade6xTest::testUpgrade6xNodeAccessRebuild in Coder 7

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

File

coder_review/tests/coder_review_6x.test, line 200

Class

CoderReviewUpgrade6xTest

Code

function testUpgrade6xNodeAccessRebuild() {
  $this
    ->assertCoderReviewFail("  function mymodule_enable() {\n  node_access_rebuild();\n}");
  $this
    ->assertCoderReviewFail("  function mymodule_disable() {\n  node_access_rebuild();\n}");
  $this
    ->assertCoderReviewPass("  function mymodule_function() {\n  node_access_rebuild();\n}");
}