You are here

public function AgreementSubscriberTest::checkForRedirectionProvider in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x tests/src/Unit/EventSubscriber/AgreementSubscriberTest.php \Drupal\Tests\agreement\Unit\EventSubscriber\AgreementSubscriberTest::checkForRedirectionProvider()

Provides test arguments and expectations.

Return value

array An array of test arguments.

File

tests/src/Unit/EventSubscriber/AgreementSubscriberTest.php, line 105

Class

AgreementSubscriberTest
Tests the agreement route subscriber.

Namespace

Drupal\Tests\agreement\Unit\EventSubscriber

Code

public function checkForRedirectionProvider() {
  return [
    // Bypass, Have agreement, Expected Response.
    [
      TRUE,
      FALSE,
      FALSE,
    ],
    [
      TRUE,
      TRUE,
      FALSE,
    ],
    [
      FALSE,
      FALSE,
      FALSE,
    ],
    [
      FALSE,
      TRUE,
      TRUE,
    ],
  ];
}