You are here

public function ConfigEntityMapperTest::testGetOperations in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 210
Contains \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest.

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 = array(
    'list' => array(
      'title' => 'List',
      'url' => Url::fromRoute('config_translation.entity_list', [
        'mapper_id' => 'configurable_language',
      ]),
    ),
  );
  $this
    ->assertEquals($expected, $result);
}