@@ 103-111 (lines=9) @@ | ||
100 | $this->object->getAdminType(new stdClass()); |
|
101 | } |
|
102 | ||
103 | public function testGetSetHasBulkAction() |
|
104 | { |
|
105 | $config = $this->object; |
|
106 | $this->assertFalse($config->hasBulkActions()); |
|
107 | $config->addBulkAction(new SimpleBulkAction(['/url'], 'label')); |
|
108 | $this->assertTrue($config->hasBulkActions()); |
|
109 | $this->assertCount(1, $config->getBulkActions()); |
|
110 | $this->assertInstanceOf(SimpleBulkAction::class, $config->getBulkActions()[0]); |
|
111 | } |
|
112 | ||
113 | public function testGetSetHasListAction() |
|
114 | { |
|
@@ 113-121 (lines=9) @@ | ||
110 | $this->assertInstanceOf(SimpleBulkAction::class, $config->getBulkActions()[0]); |
|
111 | } |
|
112 | ||
113 | public function testGetSetHasListAction() |
|
114 | { |
|
115 | $config = $this->object; |
|
116 | $this->assertFalse($config->hasListActions()); |
|
117 | $config->addListAction(new SimpleListAction(['/url'], 'label')); |
|
118 | $this->assertTrue($config->hasListActions()); |
|
119 | $this->assertCount(1, $config->getListActions()); |
|
120 | $this->assertInstanceOf(SimpleListAction::class, $config->getListActions()[0]); |
|
121 | } |
|
122 | ||
123 | public function testGetSetHasItemAction() |
|
124 | { |