You are here

public function ConfigEntityMapperTest::testGetOperations in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest::testGetOperations()

Tests ConfigEntityMapper::getOperations().

File

core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php, line 215

Class

ConfigEntityMapperTest
Tests the functionality provided by the configuration entity mapper.

Namespace

Drupal\Tests\config_translation\Unit

Code

public function testGetOperations() {
  $result = $this->configEntityMapper
    ->getOperations();
  $expected = [
    'list' => [
      'title' => 'List',
      'url' => Url::fromRoute('config_translation.entity_list', [
        'mapper_id' => 'configurable_language',
      ]),
    ],
  ];
  $this
    ->assertEquals($expected, $result);
}