public function EntityPagerAnalyzeEventTest::testSetEntityPager in Entity Pager 8
Same name and namespace in other branches
- 2.0.x tests/src/Unit/EntityPagerAnalyzeEventTest.php \Drupal\Tests\entity_pager\Unit\EntityPagerAnalyzeEventTest::testSetEntityPager()
@covers ::__construct @covers ::getEntityPager @covers ::setEntityPager
File
- tests/
src/ Unit/ EntityPagerAnalyzeEventTest.php, line 30
Class
- EntityPagerAnalyzeEventTest
- @coversDefaultClass \Drupal\entity_pager\Event\EntityPagerAnalyzeEvent @group entity_pager
Namespace
Drupal\Tests\entity_pager\UnitCode
public function testSetEntityPager() {
$event = new EntityPagerAnalyzeEvent($this
->createMock(EntityPagerInterface::class));
$entity_pager = $this
->createMock(EntityPagerInterface::class);
$event
->setEntityPager($entity_pager);
$this
->assertSame($entity_pager, $event
->getEntityPager());
}