You are here

public function SearchByPageTesterTest::search_by_page_test_menu in Search by Page 8

Implements hook_menu().

Sets up pages that can be rendered and searched.

File

tests/src/Functional/SearchByPageTesterTest.php, line 371
General Functional Tests for the Search by Page module. By Jennifer Hodgdon of Poplar ProductivityWare, www.poplarware.com

Class

SearchByPageTesterTest
Base class for testing Search by Page.

Namespace

Drupal\Tests\search_by_page\Functional

Code

public function search_by_page_test_menu() {
  $items = array();
  $items['search_by_page_test_priv_page'] = array(
    'title' => 'Search by Page private page',
    'description' => 'Test content',
    'page callback' => 'search_by_page_test_make_priv_page',
    'access arguments' => array(
      'view test private content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['search_by_page_test_pub_page'] = array(
    'title' => 'Search by Page public page',
    'description' => 'Test content',
    'page callback' => 'search_by_page_test_make_pub_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['search_by_page_test_another_page'] = array(
    'title' => 'Search by Page another Page',
    'description' => 'Test content',
    'page callback' => 'search_by_page_test_make_another_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['search_by_page_test_queried_page'] = array(
    'title' => 'Search by Page queried Page',
    'description' => 'Test content',
    'page callback' => 'search_by_page_test_make_queried_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['search_by_page_test_exclude_page'] = array(
    'title' => 'Search by Page exclude Page',
    'description' => 'Test content',
    'page callback' => 'search_by_page_test_make_exclude_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['search_by_page_test_output_page'] = array(
    'title' => 'Search by Page output Page',
    'description' => 'Test content',
    'page callback' => 'search_by_page_test_make_output_page',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  return $items;
}