You are here

public function EntityPagerAnalyzeEventTest::testGetEntityPager in Entity Pager 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/EntityPagerAnalyzeEventTest.php \Drupal\Tests\entity_pager\Unit\EntityPagerAnalyzeEventTest::testGetEntityPager()

@covers ::__construct @covers ::getEntityPager

File

tests/src/Unit/EntityPagerAnalyzeEventTest.php, line 19

Class

EntityPagerAnalyzeEventTest
@coversDefaultClass \Drupal\entity_pager\Event\EntityPagerAnalyzeEvent @group entity_pager

Namespace

Drupal\Tests\entity_pager\Unit

Code

public function testGetEntityPager() {
  $entity_pager = $this
    ->createMock(EntityPagerInterface::class);
  $event = new EntityPagerAnalyzeEvent($entity_pager);
  $this
    ->assertSame($entity_pager, $event
    ->getEntityPager());
}