/**
* Tests the accessing of values on the object.
*/
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());
} public function testSetDisplayWithInvalidDisplay() { $view = Views::
getView('test_executable_displays'
);
$view->
initDisplay();
// Error is triggered while calling the wrong display.
try { $view->
setDisplay('invalid'
);
$this->
fail('Expected error, when setDisplay() called with invalid display ID'
);
}