public function ViewExecutableTest::testProperties in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/ViewExecutableTest.php \Drupal\Tests\views\Kernel\ViewExecutableTest::testProperties()
Tests the accessing of values on the object.
File
- core/
modules/ views/ tests/ src/ Kernel/ ViewExecutableTest.php, line 194
Class
- ViewExecutableTest
- Tests the ViewExecutable class.
Namespace
Drupal\Tests\views\KernelCode
public function testProperties() {
$view = Views::getView('test_destroy');
foreach ($this->executableProperties as $property) {
$this
->assertTrue(isset($view->{$property}));
}
// Per default exposed input should fall back to an empty array.
$this
->assertEquals([], $view
->getExposedInput());
}