You are here

public function RevisionIsCurrentTest::testRevisionIsCurrentDataProvider in Acquia Content Hub 8.2

File

tests/src/Kernel/RevisionIsCurrentTest.php, line 144

Class

RevisionIsCurrentTest
Tests that only current published revisions are enqueued.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function testRevisionIsCurrentDataProvider() {
  return [
    [
      [
        'draft',
        'published',
        'archived',
      ],
      [
        0,
        1,
        1,
      ],
      [
        'en',
        'en',
        'en',
      ],
      [
        'Node transitioned to draft from draft state.',
        'Node transitioned to published from draft state.',
        'Node transitioned to archived from published state.',
      ],
    ],
    [
      [
        'published',
        'draft',
        'published',
        'archived',
        'archived',
      ],
      [
        1,
        1,
        1,
        1,
        0,
      ],
      [
        'en',
        'en',
        'en',
        'en',
        'en',
      ],
      [
        'Node transitioned to published from draft state.',
        'Node transitioned to draft from published state.',
        'Node transitioned to published from draft state.',
        'Node transitioned to archived from published state.',
        'Node transitioned to draft from archived state.',
      ],
    ],
    [
      [
        'published',
        'published',
        'archived',
        'archived',
        'draft',
        'draft',
      ],
      [
        1,
        1,
        1,
        1,
        0,
        0,
      ],
      [
        'en',
        'es',
        'en',
        'es',
        'en',
        'es',
      ],
      [
        'Node transitioned to published from draft state. (EN)',
        'Node transitioned to published from draft state. (ES)',
        'Node transitioned to archived from published state. (EN)',
        'Node transitioned to archived from published state. (ES)',
        'Node transitioned to draft from archived state. (EN)',
        'Node transitioned to draft from archived state. (ES)',
      ],
    ],
  ];
}