diff --git a/core/modules/action/lib/Drupal/action/Tests/BulkFormTest.php b/core/modules/action/lib/Drupal/action/Tests/BulkFormTest.php index 52f0399..b9aa6f6 100644 --- a/core/modules/action/lib/Drupal/action/Tests/BulkFormTest.php +++ b/core/modules/action/lib/Drupal/action/Tests/BulkFormTest.php @@ -21,7 +21,7 @@ class BulkFormTest extends WebTestBase { * * @var array */ - public static $modules = array('action_bulk_test'); + public static $modules = array('node', 'action_bulk_test'); public static function getInfo() { return array( diff --git a/core/modules/aggregator/tests/aggregator_test.module b/core/modules/aggregator/tests/aggregator_test.module index 2d26a5d..cbe65d2 100644 --- a/core/modules/aggregator/tests/aggregator_test.module +++ b/core/modules/aggregator/tests/aggregator_test.module @@ -8,7 +8,7 @@ function aggregator_test_menu() { 'title' => 'Test feed static last modified date', 'description' => "A cached test feed with a static last modified date.", 'page callback' => 'aggregator_test_feed', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); return $items; diff --git a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php index f2ada97..e89d2e1 100644 --- a/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php @@ -22,7 +22,7 @@ class TranslationTest extends FieldTestBase { * * @var array */ - public static $modules = array('language', 'field_test'); + public static $modules = array('node', 'language', 'field_test'); public static function getInfo() { return array( diff --git a/core/modules/field/lib/Drupal/field/Tests/Views/FieldTestBase.php b/core/modules/field/lib/Drupal/field/Tests/Views/FieldTestBase.php index c0f500b..f0e2a0d 100644 --- a/core/modules/field/lib/Drupal/field/Tests/Views/FieldTestBase.php +++ b/core/modules/field/lib/Drupal/field/Tests/Views/FieldTestBase.php @@ -31,7 +31,7 @@ * * @var array */ - public static $modules = array('field_test_views'); + public static $modules = array('node', 'field_test_views'); /** * Stores the field definitions used by the test. diff --git a/core/modules/field_ui/lib/Drupal/field_ui/Tests/AlterTest.php b/core/modules/field_ui/lib/Drupal/field_ui/Tests/AlterTest.php index 016b9d0..eefe3c9 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/Tests/AlterTest.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/Tests/AlterTest.php @@ -19,7 +19,7 @@ class AlterTest extends WebTestBase { * * @var array */ - public static $modules = array('field_ui', 'field_test', 'text', 'options'); + public static $modules = array('node', 'field_ui', 'field_test', 'text', 'options'); public static function getInfo() { return array( diff --git a/core/modules/file/lib/Drupal/file/Tests/RemoteFileSaveUploadTest.php b/core/modules/file/lib/Drupal/file/Tests/RemoteFileSaveUploadTest.php index ed587d2..a6e42c2 100644 --- a/core/modules/file/lib/Drupal/file/Tests/RemoteFileSaveUploadTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/RemoteFileSaveUploadTest.php @@ -12,13 +12,6 @@ */ class RemoteFileSaveUploadTest extends SaveUploadTest { - /** - * Modules to enable. - * - * @var array - */ - public static $modules = array('file_test'); - public static function getInfo() { $info = parent::getInfo(); $info['group'] = 'File API (remote)'; diff --git a/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php b/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php index c2adbd6..fa12b54 100644 --- a/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/SaveUploadTest.php @@ -36,7 +36,7 @@ public static function getInfo() { function setUp() { parent::setUp(); - $account = $this->drupalCreateUser(array('access content')); + $account = $this->drupalCreateUser(); $this->drupalLogin($account); $image_files = $this->drupalGetTestFiles('image'); diff --git a/core/modules/file/tests/file_module_test.module b/core/modules/file/tests/file_module_test.module index b962e2a..fec8c66 100644 --- a/core/modules/file/tests/file_module_test.module +++ b/core/modules/file/tests/file_module_test.module @@ -12,15 +12,12 @@ * Implements hook_menu(). */ function file_module_test_menu() { - $items = array(); - $items['file/test'] = array( 'title' => 'Managed file test', 'page callback' => 'drupal_get_form', 'page arguments' => array('file_module_test_form'), - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); - return $items; } diff --git a/core/modules/file/tests/file_test/file_test.module b/core/modules/file/tests/file_test/file_test.module index 1d924de..1668194 100644 --- a/core/modules/file/tests/file_test/file_test.module +++ b/core/modules/file/tests/file_test/file_test.module @@ -21,7 +21,7 @@ function file_test_menu() { 'title' => 'Upload test', 'page callback' => 'drupal_get_form', 'page arguments' => array('_file_test_form'), - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); return $items; diff --git a/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php index a71a9e9..534ee6b 100644 --- a/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterFormatAccessTest.php @@ -13,6 +13,14 @@ * Tests the filter format access functionality in the Filter module. */ class FilterFormatAccessTest extends WebTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('filter', 'node'); + /** * A user with administrative permissions. * diff --git a/core/modules/language/lib/Drupal/language/Tests/LanguageConfigurationElementTest.php b/core/modules/language/lib/Drupal/language/Tests/LanguageConfigurationElementTest.php index 55d6e8a..b37eeb9 100644 --- a/core/modules/language/lib/Drupal/language/Tests/LanguageConfigurationElementTest.php +++ b/core/modules/language/lib/Drupal/language/Tests/LanguageConfigurationElementTest.php @@ -20,7 +20,7 @@ class LanguageConfigurationElementTest extends WebTestBase { * * @var array */ - public static $modules = array('language', 'language_elements_test'); + public static $modules = array('node', 'language', 'language_elements_test'); public static function getInfo() { return array( diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleContentTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleContentTest.php index a424457..4e03885 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleContentTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleContentTest.php @@ -19,7 +19,7 @@ class LocaleContentTest extends WebTestBase { * * @var array */ - public static $modules = array('locale'); + public static $modules = array('node', 'locale'); public static function getInfo() { return array( diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeFeedTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeFeedTest.php index 0fd06d1..f68fd6a 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeFeedTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeFeedTest.php @@ -13,6 +13,14 @@ * Test the node_feed() functionality. */ class NodeFeedTest extends WebTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('node'); + public static function getInfo() { return array( 'name' => 'Node feed', diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php b/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php index 1bba558..caed275 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php @@ -24,8 +24,12 @@ function setUp() { parent::setUp(); - // Create Basic page and Article node types. if ($this->profile != 'standard') { + // Enable default permissions for system roles. + user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content')); + user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content')); + + // Create Basic page and Article node types. $this->drupalCreateContentType(array('type' => 'page', 'name' => 'Basic page')); $this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article')); } diff --git a/core/modules/node/tests/modules/node_access_test/node_access_test.module b/core/modules/node/tests/modules/node_access_test/node_access_test.module index 4efee88..e8371e1 100644 --- a/core/modules/node/tests/modules/node_access_test/node_access_test.module +++ b/core/modules/node/tests/modules/node_access_test/node_access_test.module @@ -82,17 +82,16 @@ function node_access_test_permission() { * Sets up a test page that lists nodes. */ function node_access_test_menu() { - $items = array(); $items['node_access_test_page'] = array( 'title' => 'Node access test', 'page callback' => 'node_access_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_SUGGESTED_ITEM, ); $items['node_access_entity_test_page'] = array( - 'title' => 'Node access test', + 'title' => 'Node access entity test', 'page callback' => 'node_access_entity_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_SUGGESTED_ITEM, ); return $items; diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUITest.php b/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUITest.php index 3409185..7d6a2f6 100644 --- a/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUITest.php +++ b/core/modules/options/lib/Drupal/options/Tests/OptionsFieldUITest.php @@ -19,7 +19,7 @@ class OptionsFieldUITest extends FieldTestBase { * * @var array */ - public static $modules = array('options', 'field_test', 'taxonomy', 'field_ui'); + public static $modules = array('node', 'options', 'field_test', 'taxonomy', 'field_ui'); public static function getInfo() { return array( diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php b/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php index 023f012..bc6c9e2 100644 --- a/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php +++ b/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php @@ -19,7 +19,7 @@ class OptionsWidgetsTest extends FieldTestBase { * * @var array */ - public static $modules = array('options', 'field_test', 'options_test', 'taxonomy', 'field_ui'); + public static $modules = array('node', 'options', 'field_test', 'options_test', 'taxonomy', 'field_ui'); public static function getInfo() { return array( diff --git a/core/modules/php/lib/Drupal/php/Tests/PhpTestBase.php b/core/modules/php/lib/Drupal/php/Tests/PhpTestBase.php index 596ebd8..749b2ea 100644 --- a/core/modules/php/lib/Drupal/php/Tests/PhpTestBase.php +++ b/core/modules/php/lib/Drupal/php/Tests/PhpTestBase.php @@ -19,7 +19,7 @@ * * @var array */ - public static $modules = array('php'); + public static $modules = array('filter', 'node', 'php'); protected $php_code_format; diff --git a/core/modules/rest/lib/Drupal/rest/Tests/DeleteTest.php b/core/modules/rest/lib/Drupal/rest/Tests/DeleteTest.php index 66f85c4..22dc07b 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/DeleteTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/DeleteTest.php @@ -19,7 +19,7 @@ class DeleteTest extends RESTTestBase { * * @var array */ - public static $modules = array('rest', 'entity_test'); + public static $modules = array('node', 'rest', 'entity_test'); public static function getInfo() { return array( diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutTestBase.php b/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutTestBase.php index 8c94435..ae3546f 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutTestBase.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutTestBase.php @@ -20,7 +20,7 @@ * * @var array */ - public static $modules = array('toolbar', 'shortcut'); + public static $modules = array('node', 'toolbar', 'shortcut'); /** * User with permission to administer shortcuts. diff --git a/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php b/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php index a4641f6..acdfcd3 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php @@ -140,7 +140,7 @@ function testUserAgentValidation() { function testWebTestRunner() { $this->pass = t('SimpleTest pass.'); $this->fail = t('SimpleTest fail.'); - $this->valid_permission = 'access content'; + $this->valid_permission = 'access administration pages'; $this->invalid_permission = 'invalid permission'; if ($this->inCURL()) { diff --git a/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php b/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php index 4cb7053..1370bf1 100644 --- a/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php +++ b/core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsLoggingTest.php @@ -23,7 +23,7 @@ class StatisticsLoggingTest extends WebTestBase { * * @var array */ - public static $modules = array('statistics', 'block'); + public static $modules = array('node', 'statistics', 'block'); public static function getInfo() { return array( diff --git a/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php index a196f85..9ddebea 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php @@ -19,7 +19,7 @@ * * @var array */ - public static $modules = array('ajax_test', 'ajax_forms_test'); + public static $modules = array('node', 'ajax_test', 'ajax_forms_test'); /** * Asserts the array of Ajax commands contains the searched command. diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php index 30cf24e..cf95596 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Common/CascadingStylesheetsTest.php @@ -19,7 +19,7 @@ class CascadingStylesheetsTest extends WebTestBase { * * @var array */ - public static $modules = array('language', 'common_test'); + public static $modules = array('node', 'language', 'common_test'); public static function getInfo() { return array( diff --git a/core/modules/system/tests/modules/common_test/common_test.module b/core/modules/system/tests/modules/common_test/common_test.module index a41f608..b8d1013 100644 --- a/core/modules/system/tests/modules/common_test/common_test.module +++ b/core/modules/system/tests/modules/common_test/common_test.module @@ -12,62 +12,62 @@ function common_test_menu() { $items['common-test/drupal_goto'] = array( 'title' => 'Drupal Goto', 'page callback' => 'common_test_drupal_goto_land', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/drupal_goto/alt'] = array( 'title' => 'Drupal Goto', 'page callback' => 'common_test_drupal_goto_land_alt', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/drupal_goto/fail'] = array( 'title' => 'Drupal Goto', 'page callback' => 'common_test_drupal_goto_land_fail', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/drupal_goto/redirect'] = array( 'title' => 'Drupal Goto', 'page callback' => 'common_test_drupal_goto_redirect', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/drupal_goto/redirect_advanced'] = array( 'title' => 'Drupal Goto', 'page callback' => 'common_test_drupal_goto_redirect_advanced', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/drupal_goto/redirect_fail'] = array( 'title' => 'Drupal Goto Failure', 'page callback' => 'drupal_goto', 'page arguments' => array('common-test/drupal_goto/fail'), - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/destination'] = array( 'title' => 'Drupal Get Destination', 'page callback' => 'common_test_destination', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/query-string'] = array( 'title' => 'Test querystring', 'page callback' => 'common_test_js_and_css_querystring', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/drupal-render-invalid-keys'] = array( 'title' => 'Drupal Render', 'page callback' => 'common_test_drupal_render_invalid_keys', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['common-test/l-active-class'] = array( 'title' => 'Test l() adding of active class', 'page callback' => 'common_test_l_active_class', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); return $items; diff --git a/core/modules/system/tests/modules/menu_test/menu_test.module b/core/modules/system/tests/modules/menu_test/menu_test.module index 36cef57..3c6e028 100644 --- a/core/modules/system/tests/modules/menu_test/menu_test.module +++ b/core/modules/system/tests/modules/menu_test/menu_test.module @@ -20,14 +20,14 @@ function menu_test_menu() { 'title' => 'Menu Callback Title', 'page callback' => 'menu_test_callback', 'type' => MENU_CALLBACK, - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // This item uses system_admin_menu_block_page() to list child items. $items['menu_callback_description'] = array( 'title' => 'Menu item title', 'page callback' => 'system_admin_menu_block_page', 'description' => 'Menu item description parent', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'file' => 'system.admin.inc', 'file path' => drupal_get_path('module', 'system'), ); @@ -35,14 +35,14 @@ function menu_test_menu() { 'title' => 'Menu item with a regular description', 'page callback' => 'menu_test_callback', 'description' => 'Menu item description text', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu_callback_description/description-callback'] = array( 'title' => 'Menu item with a description set with a callback', 'page callback' => 'menu_test_callback', 'description callback' => 'check_plain', 'description arguments' => array('Menu item description arguments'), - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // Use FALSE as 'title callback' to bypass t(). $items['menu_no_title_callback'] = array( @@ -50,14 +50,14 @@ function menu_test_menu() { 'title callback' => FALSE, 'title arguments' => array('@placeholder' => 'some other text'), 'page callback' => 'menu_test_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // Hidden link for menu_link_maintain tests $items['menu_test_maintain/%'] = array( 'title' => 'Menu maintain test', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // Hierarchical tests. $items['menu-test/hierarchy/parent'] = array( @@ -76,7 +76,7 @@ function menu_test_menu() { $items['menu-test/theme-callback/%'] = array( 'title' => 'Page that displays different themes', 'page callback' => 'menu_test_theme_page_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'theme callback' => 'menu_test_theme_callback', 'theme arguments' => array(2), ); @@ -84,12 +84,12 @@ function menu_test_menu() { 'title' => 'Page that tests theme callback inheritance.', 'page callback' => 'menu_test_theme_page_callback', 'page arguments' => array(TRUE), - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu-test/no-theme-callback'] = array( 'title' => 'Page that displays different themes without using a theme callback.', 'page callback' => 'menu_test_theme_page_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // Path containing "exotic" characters. $path = "menu-test/ -._~!$'\"()*@[]?&+%#,;=:" . // "Special" ASCII characters. @@ -98,7 +98,7 @@ function menu_test_menu() { $items[$path] = array( 'title' => '"Exotic" path', 'page callback' => 'menu_test_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // Hidden tests; base parents. @@ -107,19 +107,19 @@ function menu_test_menu() { $items['menu-test'] = array( 'title' => 'Menu test root', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu-test/hidden'] = array( 'title' => 'Hidden test root', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // Hidden tests; one dynamic argument. $items['menu-test/hidden/menu'] = array( 'title' => 'Menus', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu-test/hidden/menu/list'] = array( 'title' => 'List menus', @@ -129,20 +129,20 @@ function menu_test_menu() { $items['menu-test/hidden/menu/add'] = array( 'title' => 'Add menu', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_LOCAL_ACTION, ); $items['menu-test/hidden/menu/settings'] = array( 'title' => 'Settings', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_LOCAL_TASK, 'weight' => 5, ); $items['menu-test/hidden/menu/manage/%menu'] = array( 'title' => 'Customize menu', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu-test/hidden/menu/manage/%menu/list'] = array( 'title' => 'List links', @@ -153,27 +153,27 @@ function menu_test_menu() { $items['menu-test/hidden/menu/manage/%menu/add'] = array( 'title' => 'Add link', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_LOCAL_ACTION, ); $items['menu-test/hidden/menu/manage/%menu/edit'] = array( 'title' => 'Edit menu', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_LOCAL_TASK, 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE, ); $items['menu-test/hidden/menu/manage/%menu/delete'] = array( 'title' => 'Delete menu', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // Hidden tests; two dynamic arguments. $items['menu-test/hidden/block'] = array( 'title' => 'Blocks', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu-test/hidden/block/list'] = array( 'title' => 'List', @@ -183,13 +183,13 @@ function menu_test_menu() { $items['menu-test/hidden/block/add'] = array( 'title' => 'Add block', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_LOCAL_ACTION, ); $items['menu-test/hidden/block/manage/%/%'] = array( 'title' => 'Configure block', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu-test/hidden/block/manage/%/%/configure'] = array( 'title' => 'Configure block', @@ -199,7 +199,7 @@ function menu_test_menu() { $items['menu-test/hidden/block/manage/%/%/delete'] = array( 'title' => 'Delete block', 'page callback' => 'test_page_test_page', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_LOCAL_TASK, 'context' => MENU_CONTEXT_NONE, ); @@ -244,7 +244,7 @@ function menu_test_menu() { $items['menu-test/menu-trail'] = array( 'title' => 'Menu trail - Case 1', 'page callback' => 'menu_test_menu_trail_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['admin/config/development/menu-trail'] = array( 'title' => 'Menu trail - Case 2', @@ -255,12 +255,12 @@ function menu_test_menu() { $items['menu-test/custom-403-page'] = array( 'title' => 'Custom 403 page', 'page callback' => 'menu_test_custom_403_404_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu-test/custom-404-page'] = array( 'title' => 'Custom 404 page', 'page callback' => 'menu_test_custom_403_404_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); // File inheritance tests. This menu item should inherit the page callback @@ -269,13 +269,13 @@ function menu_test_menu() { $items['admin/config/development/file-inheritance'] = array( 'title' => 'File inheritance', 'description' => 'Test file inheritance', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['admin/config/development/file-inheritance/inherit'] = array( 'title' => 'Inherit', 'description' => 'File inheritance test description', 'page callback' => 'menu_test_callback', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['menu_login_callback'] = array( diff --git a/core/modules/system/tests/modules/module_test/module_test.module b/core/modules/system/tests/modules/module_test/module_test.module index facf3c4..3416ec5 100644 --- a/core/modules/system/tests/modules/module_test/module_test.module +++ b/core/modules/system/tests/modules/module_test/module_test.module @@ -71,18 +71,18 @@ function module_test_menu() { $items['module-test/hook-dynamic-loading-invoke'] = array( 'title' => 'Test hook dynamic loading (invoke)', 'page callback' => 'module_test_hook_dynamic_loading_invoke', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['module-test/hook-dynamic-loading-invoke-all'] = array( 'title' => 'Test hook dynamic loading (invoke_all)', 'page callback' => 'module_test_hook_dynamic_loading_invoke_all', - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['module-test/hook-dynamic-loading-invoke-all-during-load/%module_test'] = array( 'title' => 'Test hook dynamic loading (menu item load)', 'page callback' => 'module_test_hook_dynamic_loading_invoke_all_during_load', 'page arguments' => array(2), - 'access arguments' => array('access content'), + 'access callback' => TRUE, ); $items['module-test/class-loading'] = array( 'title' => 'Test loading a class from another module', diff --git a/core/modules/system/tests/modules/session_test/session_test.module b/core/modules/system/tests/modules/session_test/session_test.module index d2c17ef..5ae7a96 100644 --- a/core/modules/system/tests/modules/session_test/session_test.module +++ b/core/modules/system/tests/modules/session_test/session_test.module @@ -7,51 +7,51 @@ function session_test_menu() { $items['session-test/get'] = array( 'title' => 'Session value', 'page callback' => '_session_test_get', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/id'] = array( 'title' => 'Session ID', 'page callback' => '_session_test_id', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/id-from-cookie'] = array( 'title' => 'Session ID from cookie', 'page callback' => '_session_test_id_from_cookie', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/set/%'] = array( 'title' => 'Set session value', 'page callback' => '_session_test_set', 'page arguments' => array(2), - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/no-set/%'] = array( 'title' => 'Set session value but do not save session', 'page callback' => '_session_test_no_set', 'page arguments' => array(2), - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/set-message'] = array( 'title' => 'Set message', 'page callback' => '_session_test_set_message', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/set-message-but-dont-save'] = array( 'title' => 'Set message but do not save session', 'page callback' => '_session_test_set_message_but_dont_save', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/set-not-started'] = array( 'title' => 'Set message when session is not started', 'page callback' => '_session_test_set_not_started', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['session-test/is-logged-in'] = array( diff --git a/core/modules/system/tests/modules/system_test/system_test.module b/core/modules/system/tests/modules/system_test/system_test.module index ee67964..d6e87a5 100644 --- a/core/modules/system/tests/modules/system_test/system_test.module +++ b/core/modules/system/tests/modules/system_test/system_test.module @@ -25,34 +25,34 @@ function system_test_menu() { 'title' => 'Redirect', 'page callback' => 'system_test_redirect', 'page arguments' => array(2), - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['system-test/multiple-redirects/%'] = array( 'title' => 'Redirect', 'page callback' => 'system_test_multiple_redirects', 'page arguments' => array(2), - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['system-test/set-header'] = array( 'page callback' => 'system_test_set_header', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['system-test/redirect-noscheme'] = array( 'page callback' => 'system_test_redirect_noscheme', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['system-test/redirect-noparse'] = array( 'page callback' => 'system_test_redirect_noparse', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); $items['system-test/redirect-invalid-scheme'] = array( 'page callback' => 'system_test_redirect_invalid_scheme', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); @@ -60,7 +60,7 @@ function system_test_menu() { 'title' => 'Variable Get', 'page callback' => 'variable_get', 'page arguments' => array('simpletest_bootstrap_variable_test', NULL), - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); diff --git a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module index 8bacb9b..238e8e5 100644 --- a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module +++ b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module @@ -12,7 +12,7 @@ function url_alter_test_menu() { $items['url-alter-test/foo'] = array( 'title' => 'Foo', 'page callback' => 'url_alter_test_foo', - 'access arguments' => array('access content'), + 'access callback' => TRUE, 'type' => MENU_CALLBACK, ); return $items; diff --git a/core/profiles/testing/testing.info b/core/profiles/testing/testing.info index fff3df2..8e353ed 100644 --- a/core/profiles/testing/testing.info +++ b/core/profiles/testing/testing.info @@ -3,5 +3,3 @@ description = Minimal profile for running tests. Includes absolutely required mo version = VERSION core = 8.x hidden = TRUE -; @todo Remove dependency on Node module. -dependencies[] = node diff --git a/core/profiles/testing/testing.install b/core/profiles/testing/testing.install deleted file mode 100644 index 7575d22..0000000 --- a/core/profiles/testing/testing.install +++ /dev/null @@ -1,19 +0,0 @@ -