You are here

public function ContextTest::providerGetContextValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php \Drupal\Tests\Component\Plugin\Context\ContextTest::providerGetContextValue()

Data provider for testGetContextValue.

File

core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php, line 22
Contains \Drupal\Tests\Component\Plugin\Context\ContextTest.

Class

ContextTest
@coversDefaultClass \Drupal\Component\Plugin\Context\Context @group Plugin

Namespace

Drupal\Tests\Component\Plugin\Context

Code

public function providerGetContextValue() {
  return [
    [
      'context_value',
      'context_value',
      FALSE,
      'data_type',
    ],
    [
      NULL,
      NULL,
      FALSE,
      'data_type',
    ],
    [
      'will throw exception',
      NULL,
      TRUE,
      'data_type',
    ],
  ];
}