function TourResourceTestBase::getExpectedNormalizedEntity

Same name in other branches
  1. 9 core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php \Drupal\Tests\tour\Functional\Rest\TourResourceTestBase::getExpectedNormalizedEntity()
  2. 8.9.x core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php \Drupal\Tests\tour\Functional\Rest\TourResourceTestBase::getExpectedNormalizedEntity()
  3. 10 core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php \Drupal\Tests\tour\Functional\Rest\TourResourceTestBase::getExpectedNormalizedEntity()

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php, line 67

Class

TourResourceTestBase

Namespace

Drupal\Tests\tour\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'dependencies' => [],
        'id' => 'tour-llama',
        'label' => 'Llama tour',
        'langcode' => 'en',
        'module' => 'tour',
        'routes' => [
            [
                'route_name' => '<front>',
            ],
        ],
        'status' => TRUE,
        'tips' => [
            'tour-llama-1' => [
                'id' => 'tour-llama-1',
                'plugin' => 'text',
                'label' => 'Llama',
                'body' => 'Who handle the awesomeness of llamas?',
                'weight' => 100,
                'selector' => '#tour-llama-1',
            ],
        ],
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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