@@ 251-257 (lines=7) @@ | ||
248 | $this->assertContainsOnlyInstancesOf(ItemActionInterface::class, $this->abstractAdminListConfMock->getItemActions()); |
|
249 | } |
|
250 | ||
251 | public function testAddHasGetListAction() |
|
252 | { |
|
253 | $listActionInterfaceMock = $this->createMock(ListActionInterface::class); |
|
254 | $this->assertInstanceOf(AbstractAdminListConfigurator::class, $this->abstractAdminListConfMock->addListAction($listActionInterfaceMock)); |
|
255 | $this->assertTrue($this->abstractAdminListConfMock->hasListActions()); |
|
256 | $this->assertContainsOnlyInstancesOf(ListActionInterface::class, $this->abstractAdminListConfMock->getListActions()); |
|
257 | } |
|
258 | ||
259 | public function testAddHasGetBulkAction() |
|
260 | { |
|
@@ 259-265 (lines=7) @@ | ||
256 | $this->assertContainsOnlyInstancesOf(ListActionInterface::class, $this->abstractAdminListConfMock->getListActions()); |
|
257 | } |
|
258 | ||
259 | public function testAddHasGetBulkAction() |
|
260 | { |
|
261 | $bulkActionInterfaceMock = $this->createMock(BulkActionInterface::class); |
|
262 | $this->assertInstanceOf(AbstractAdminListConfigurator::class, $this->abstractAdminListConfMock->addBulkAction($bulkActionInterfaceMock)); |
|
263 | $this->assertTrue($this->abstractAdminListConfMock->hasBulkActions()); |
|
264 | $this->assertContainsOnlyInstancesOf(BulkActionInterface::class, $this->abstractAdminListConfMock->getBulkActions()); |
|
265 | } |
|
266 | ||
267 | public function testGetListTemplate() |
|
268 | { |