You are here

public function ViewExecutableTest::testProperties in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/ViewExecutableTest.php \Drupal\views\Tests\ViewExecutableTest::testProperties()

Tests the accessing of values on the object.

File

core/modules/views/src/Tests/ViewExecutableTest.php, line 188
Contains \Drupal\views\Tests\ViewExecutableTest.

Class

ViewExecutableTest
Tests the ViewExecutable class.

Namespace

Drupal\views\Tests

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(), []);
}