function RoutesTest::notExpectedRoutes

Same name and namespace in other branches
  1. 8.9.x core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::notExpectedRoutes()
  2. 10 core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::notExpectedRoutes()
  3. 11.x core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php \Drupal\Tests\jsonapi\Unit\Routing\RoutesTest::notExpectedRoutes()

Lists routes which should have been created.

File

core/modules/jsonapi/tests/src/Unit/Routing/RoutesTest.php, line 233

Class

RoutesTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21jsonapi%21src%21Routing%21Routes.php/class/Routes/9" title="Defines dynamic routes." class="local">\Drupal\jsonapi\Routing\Routes</a> @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\Routing

Code

public function notExpectedRoutes() {
    return [
        [
            'jsonapi.entity_type_2--bundle_2_1.individual',
        ],
        [
            'jsonapi.entity_type_2--bundle_2_1.collection',
        ],
        [
            'jsonapi.entity_type_2--bundle_2_1.collection.post',
        ],
        [
            'jsonapi.entity_type_2--bundle_2_1.internal.related',
        ],
        [
            'jsonapi.entity_type_2--bundle_2_1.internal.relationship',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.