You are here

function CoderUpgrade6xTest::testUpgrade6xNodeAccessRebuild in Coder 6.2

Same name and namespace in other branches
  1. 6 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xNodeAccessRebuild()

File

tests/coder_6x.test, line 201

Class

CoderUpgrade6xTest

Code

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