@@ 114-124 (lines=11) @@ | ||
111 | $this->assertCount(3, $fields); |
|
112 | } |
|
113 | ||
114 | public function testBuildItemActions() |
|
115 | { |
|
116 | $item = Stub::makeEmpty(AbstractPage::class, ['getId' => 123]); |
|
117 | $this->object->buildItemActions(); |
|
118 | $actions = $this->object->getItemActions(); |
|
119 | $this->assertCount(1, $actions); |
|
120 | $this->assertInstanceOf(SimpleItemAction::class, $actions[0]); |
|
121 | /** @var SimpleItemAction $action */ |
|
122 | $action = $actions[0]; |
|
123 | $this->assertCount(2, $action->getUrlFor($item)); |
|
124 | } |
|
125 | } |
|
126 |
@@ 120-130 (lines=11) @@ | ||
117 | $this->assertCount(3, $fields); |
|
118 | } |
|
119 | ||
120 | public function testBuildItemActions() |
|
121 | { |
|
122 | $item = Stub::makeEmpty(AbstractPage::class, ['getId' => 123]); |
|
123 | $this->object->buildItemActions(); |
|
124 | $actions = $this->object->getItemActions(); |
|
125 | $this->assertCount(1, $actions); |
|
126 | $this->assertInstanceOf(SimpleItemAction::class, $actions[0]); |
|
127 | /** @var SimpleItemAction $action */ |
|
128 | $action = $actions[0]; |
|
129 | $this->assertCount(2, $action->getUrlFor($item)); |
|
130 | } |
|
131 | } |
|
132 |