We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
7 | class CrudPanelFakeColumnsTest extends BaseDBCrudPanelTest |
||
8 | { |
||
9 | private $emptyFakeColumnsArray = ['extras']; |
||
10 | |||
11 | private $fakeFieldsArray = [ |
||
12 | [ |
||
13 | 'name' => 'field', |
||
14 | 'label' => 'Normal Field', |
||
15 | ], |
||
16 | [ |
||
17 | 'name' => 'meta_title', |
||
18 | 'label' => 'Meta Title', |
||
19 | 'fake' => true, |
||
20 | 'store_in' => 'metas', |
||
21 | ], |
||
22 | [ |
||
23 | 'name' => 'meta_description', |
||
24 | 'label' => 'Meta Description', |
||
25 | 'fake' => true, |
||
26 | 'store_in' => 'metas', |
||
27 | ], |
||
28 | [ |
||
29 | 'name' => 'meta_keywords', |
||
30 | 'label' => 'Meta Keywords', |
||
31 | 'fake' => true, |
||
32 | 'store_in' => 'metas', |
||
33 | ], |
||
34 | [ |
||
35 | 'name' => 'tags', |
||
36 | 'label' => 'Tags', |
||
37 | 'fake' => true, |
||
38 | 'store_in' => 'tags', |
||
39 | ], |
||
40 | [ |
||
41 | 'name' => 'extra_details', |
||
42 | 'label' => 'Extra Details', |
||
43 | 'fake' => true, |
||
44 | ], |
||
45 | ]; |
||
46 | |||
47 | private $expectedFakeFieldsColumnNames = ['metas', 'tags', 'extras']; |
||
48 | |||
49 | public function testGetFakeColumnsAsArrayFromCreateForm() |
||
61 | |||
62 | public function testGetFakeColumnsAsArrayFromUpdateForm() |
||
74 | |||
75 | public function testGetFakeColumnsAsArrayEmpty() |
||
81 | |||
82 | public function testGetFakeColumnsAsArrayFromUnknownForm() |
||
94 | } |
||
95 |