We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 29-36 (lines=8) @@ | ||
26 | $this->topModelFunctionButton = new CrudButton('top', 'topModelFunctionButton', 'someModelFunctionName', 'crud::buttons.preview'); |
|
27 | } |
|
28 | ||
29 | public function testDefaultButtons() |
|
30 | { |
|
31 | $this->assertEquals(count($this->defaultButtonNames), count($this->crudPanel->buttons)); |
|
32 | ||
33 | foreach ($this->crudPanel->buttons as $button) { |
|
34 | $this->assertTrue(in_array($button->name, $this->defaultButtonNames)); |
|
35 | } |
|
36 | } |
|
37 | ||
38 | public function testAddTopButtonTop() |
|
39 | { |
|
@@ 195-202 (lines=8) @@ | ||
192 | $this->assertEquals(count($this->defaultButtonNames), count($this->crudPanel->buttons)); |
|
193 | } |
|
194 | ||
195 | public function testRemoveButtonFromUnknownStack() |
|
196 | { |
|
197 | $button = $this->crudPanel->buttons->first(); |
|
198 | ||
199 | $this->crudPanel->removeButtonFromStack($button->name, 'someStackName'); |
|
200 | ||
201 | $this->assertEquals(count($this->defaultButtonNames), count($this->crudPanel->buttons)); |
|
202 | } |
|
203 | ||
204 | public function testRemoveAllButtonsFromStack() |
|
205 | { |