function ViewExecutableTest::testGenerateHandlerId
Same name in other branches
- 9 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGenerateHandlerId()
- 8.9.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::testGenerateHandlerId()
- 10 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 356
Class
- ViewExecutableTest
- @coversDefaultClass \Drupal\views\ViewExecutable @group views
Namespace
Drupal\Tests\views\UnitCode
public function testGenerateHandlerId() : void {
// Test the generateHandlerId() method.
$test_ids = [
'test' => 'test',
'test_1' => 'test_1',
];
$this->assertEquals('new', ViewExecutable::generateHandlerId('new', $test_ids));
$this->assertEquals('test_2', ViewExecutable::generateHandlerId('test', $test_ids));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.