We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 159-169 (lines=11) @@ | ||
156 | $this->assertNotContains($this->oneColumnArray, $this->crudPanel->columns); |
|
157 | } |
|
158 | ||
159 | public function testRemoveUnknownColumnName() |
|
160 | { |
|
161 | $unknownColumnName = 'column4'; |
|
162 | $this->crudPanel->addColumns(['column1', 'column2', 'column3']); |
|
163 | ||
164 | $this->crudPanel->removeColumn($unknownColumnName); |
|
165 | ||
166 | $this->assertEquals(3, count($this->crudPanel->columns)); |
|
167 | $this->assertEquals(['column1', 'column2', 'column3'], array_keys($this->crudPanel->columns)); |
|
168 | $this->assertNotContains($this->otherOneColumnArray, $this->crudPanel->columns); |
|
169 | } |
|
170 | ||
171 | public function testRemoveColumnsByName() |
|
172 | { |
|
@@ 182-192 (lines=11) @@ | ||
179 | $this->assertNotEquals($this->expectedThreeColumnsArray, $this->crudPanel->columns); |
|
180 | } |
|
181 | ||
182 | public function testRemoveUnknownColumnsByName() |
|
183 | { |
|
184 | $unknownColumnNames = ['column4', 'column5']; |
|
185 | $this->crudPanel->addColumns(['column1', 'column2', 'column3']); |
|
186 | ||
187 | $this->crudPanel->removeColumns($unknownColumnNames); |
|
188 | ||
189 | $this->assertEquals(3, count($this->crudPanel->columns)); |
|
190 | $this->assertEquals(['column1', 'column2', 'column3'], array_keys($this->crudPanel->columns)); |
|
191 | $this->assertNotContains($this->otherOneColumnArray, $this->crudPanel->columns); |
|
192 | } |
|
193 | ||
194 | public function testSetColumnDetails() |
|
195 | { |