You are here

public function QueryParametersToURLTestCase::pathsToTest in Query Parameters To URL 7

Returns list of paths to test.

4 calls to QueryParametersToURLTestCase::pathsToTest()
QueryParametersToURLGlobalRedirectTestCase::testRedirectWithQueryParameters in ./query_parameters_to_url.test
Tests if a path with query parameters gets redirected to the clean path.
QueryParametersToURLGlobalRedirectTestCase::testURLRewriting in ./query_parameters_to_url.test
Tests if inbound/outbound hooks do their job.
QueryParametersToURLTestCase::testRedirectWithQueryParameters in ./query_parameters_to_url.test
Tests if a path with query parameters gets redirected to the clean path.
QueryParametersToURLTestCase::testURLRewriting in ./query_parameters_to_url.test
Tests if inbound/outbound hooks do their job.

File

./query_parameters_to_url.test, line 51
Query Arguments To URL tests.

Class

QueryParametersToURLTestCase
General test cases.

Code

public function pathsToTest() {
  $paths = array();
  $paths[] = array(
    'path' => 'node',
    'options' => array(
      'query' => array(
        'a' => array(
          1,
          2,
        ),
        'b' => array(
          'c' => 3,
        ),
      ),
    ),
    'expected_path' => 'node/p/a/0__1--1__2/b/c__3',
  );
  return $paths;
}