You are here

public function GroupMembershipManagerTest::groupContentProvider in Organic groups 8

Provides test data.

Return value

array An array of test properties. Each property is an indexed array with the following items:

  • An optional string indicating the group type ID to be returned.
  • An optional string indicating the group bundle to be returned.
  • An array containing the expected results to be returned.

File

tests/src/Kernel/Entity/GroupMembershipManagerTest.php, line 357

Class

GroupMembershipManagerTest
Tests retrieving groups associated with a given group content.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

public function groupContentProvider() {
  return [
    [
      NULL,
      NULL,
      [
        'node' => [
          0,
          1,
        ],
        'entity_test' => [
          0,
          1,
        ],
      ],
    ],
    [
      'node',
      NULL,
      [
        'node' => [
          0,
          1,
        ],
      ],
    ],
    [
      'entity_test',
      NULL,
      [
        'entity_test' => [
          0,
          1,
        ],
      ],
    ],
    [
      'node',
      'node_0',
      [
        'node' => [
          0,
        ],
      ],
    ],
    [
      'entity_test',
      'entity_test_1',
      [
        'entity_test' => [
          1,
        ],
      ],
    ],
  ];
}