public function ViewExecutableTest::testGenerateHandlerId in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGenerateHandlerId()
@covers ::generateHandlerId
File
- core/
modules/ views/ tests/ src/ Unit/ ViewExecutableTest.php, line 334
Class
- ViewExecutableTest
- @coversDefaultClass \Drupal\views\ViewExecutable @group views
Namespace
Drupal\Tests\views\UnitCode
public function testGenerateHandlerId() {
// Test the generateHandlerId() method.
$test_ids = [
'test' => 'test',
'test_1' => 'test_1',
];
$this
->assertEquals(ViewExecutable::generateHandlerId('new', $test_ids), 'new');
$this
->assertEquals(ViewExecutable::generateHandlerId('test', $test_ids), 'test_2');
}