function CtoolsContextIDTestCase::getTestContexts

1 call to CtoolsContextIDTestCase::getTestContexts()
CtoolsContextIDTestCase::testNextContextId in tests/context.test
Test ctools_context_next_id in various scenarios.

File

tests/context.test, line 31

Class

CtoolsContextIDTestCase
@file Test the keyword substitution functionality.

Code

private function getTestContexts() {
    $test_objects = array(
        array(),
        array(
            'name' => 'foo_bar',
        ),
        array(
            'id' => 25,
        ),
        array(
            'id' => 5,
            'name' => NULL,
        ),
        array(
            'id' => 'a',
            'name' => 'foo_bar',
        ),
        array(
            'id' => 'z',
            'name' => 'baz',
        ),
        array(
            'id' => 15,
            'name' => 'baz',
        ),
        array(
            'id' => 'z',
            'name' => 'foo',
        ),
        array(
            'id' => 1,
            'name' => 'foo',
        ),
        array(
            'id' => 47,
            'name' => 'bar',
        ),
        array(
            'id' => 99,
            'name' => 'bar',
        ),
    );
    return $test_objects;
}