function ViewExecutableTest::providerExecuteReturn

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::providerExecuteReturn()
  2. 8.9.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::providerExecuteReturn()
  3. 11.x core/modules/views/tests/src/Unit/ViewExecutableTest.php \Drupal\Tests\views\Unit\ViewExecutableTest::providerExecuteReturn()

Provider for testExecuteReturn().

Return value

array[] An array of arrays containing the display state and expected value.

File

core/modules/views/tests/src/Unit/ViewExecutableTest.php, line 755

Class

ViewExecutableTest
@coversDefaultClass \Drupal\views\ViewExecutable[[api-linebreak]] @group views

Namespace

Drupal\Tests\views\Unit

Code

public static function providerExecuteReturn() {
  return [
    'enabled' => [
      static::DISPLAY_ENABLED,
      TRUE,
    ],
    'disabled' => [
      static::DISPLAY_DISABLED,
      FALSE,
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.