You are here

public function OgMembershipTest::statesProvider in Organic groups 8

Provides test data to check states.

Return value

array Array with the state names and the method to check their flags.

File

tests/src/Kernel/Entity/OgMembershipTest.php, line 844

Class

OgMembershipTest
Tests the OgMembership entity.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

public function statesProvider() {
  return [
    [
      OgMembershipInterface::STATE_ACTIVE,
      'isActive',
    ],
    [
      OgMembershipInterface::STATE_PENDING,
      'isPending',
    ],
    [
      OgMembershipInterface::STATE_BLOCKED,
      'isBlocked',
    ],
  ];
}