You are here

public function ViewExecutableTest::testProperties in Drupal 8

Same name and namespace in other branches
  1. 9 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\Kernel

Code

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
    ->assertEqual($view
    ->getExposedInput(), []);
}