コード例 #1
0
 /**
  * Tests ConfigEntityMapper::getOperations().
  */
 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);
 }
コード例 #2
0
 /**
  * Tests ConfigEntityMapper::getOperations().
  */
 public function testGetOperations()
 {
     $result = $this->configEntityMapper->getOperations();
     $expected = array('list' => array('title' => 'List', 'href' => 'admin/config/regional/config-translation/language_entity'));
     $this->assertSame($expected, $result);
 }