You are here

public function EntityAnalyzerSubscriberTest::onEntityPagerAnalyzeTestCases in Entity Pager 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/EntityAnalyzerSubscriberTest.php \Drupal\Tests\entity_pager\Unit\EntityAnalyzerSubscriberTest::onEntityPagerAnalyzeTestCases()

Test cases for testOnEntityPagerAnalyze().

File

tests/src/Unit/EntityAnalyzerSubscriberTest.php, line 33

Class

EntityAnalyzerSubscriberTest
@coversDefaultClass \Drupal\entity_pager\EventSubscriber\EntityAnalyzerSubscriber @group entity_pager

Namespace

Drupal\Tests\entity_pager\Unit

Code

public function onEntityPagerAnalyzeTestCases() {
  return [
    'No entity' => [
      NULL,
      [
        'No Entity on page.',
      ],
    ],
    'Has entity' => [
      $this
        ->createMock(EntityTest::class),
      [],
    ],
  ];
}