@@ 118-129 (lines=12) @@ | ||
115 | $this->assertCount(3, $fields); |
|
116 | } |
|
117 | ||
118 | public function testBuildItemActions() |
|
119 | { |
|
120 | $item = new FakePage(); |
|
121 | $item->setId(1); |
|
122 | $this->object->buildItemActions(); |
|
123 | $actions = $this->object->getItemActions(); |
|
124 | $this->assertCount(1, $actions); |
|
125 | $this->assertInstanceOf(SimpleItemAction::class, $actions[0]); |
|
126 | /** @var SimpleItemAction $action */ |
|
127 | $action = $actions[0]; |
|
128 | $this->assertCount(2, $action->getUrlFor($item)); |
|
129 | } |
|
130 | } |
|
131 |
@@ 122-133 (lines=12) @@ | ||
119 | $this->assertCount(3, $fields); |
|
120 | } |
|
121 | ||
122 | public function testBuildItemActions() |
|
123 | { |
|
124 | $item = new FakePage(); |
|
125 | $item->setId(1); |
|
126 | $this->object->buildItemActions(); |
|
127 | $actions = $this->object->getItemActions(); |
|
128 | $this->assertCount(1, $actions); |
|
129 | $this->assertInstanceOf(SimpleItemAction::class, $actions[0]); |
|
130 | /** @var SimpleItemAction $action */ |
|
131 | $action = $actions[0]; |
|
132 | $this->assertCount(2, $action->getUrlFor($item)); |
|
133 | } |
|
134 | } |
|
135 |