Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcguffin committed Nov 4, 2023
1 parent 0d20eb5 commit 4ec0aea
Show file tree
Hide file tree
Showing 8 changed files with 183 additions and 16 deletions.
35 changes: 31 additions & 4 deletions test/acf-json/group_acf_qef_basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"show_column_sortable": 1,
"show_column_weight": 1010,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5000e3f5aee90",
Expand All @@ -49,7 +50,8 @@
"show_column": 1,
"show_column_weight": 1020,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5000e409aee91",
Expand Down Expand Up @@ -126,7 +128,8 @@
"show_column_sortable": 1,
"show_column_weight": 1050,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5000e433aee94",
Expand All @@ -148,7 +151,31 @@
"show_column_sortable": 1,
"show_column_weight": 1060,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5000e433aee95",
"label": "RTE",
"name": "rte",
"aria-label": "",
"type": "wysiwyg",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"show_column": 0,
"show_column_sortable": 0,
"show_column_weight": 1060,
"allow_quickedit": 0,
"allow_bulkedit": 0,
"allow_backendsearch": 1
}
],
"location": [
Expand Down
18 changes: 12 additions & 6 deletions test/acf-json/group_acf_qef_basic_grouped.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"show_column_sortable": 1,
"show_column_weight": 1010,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5d6393f6774a9",
Expand All @@ -62,7 +63,8 @@
"show_column": 1,
"show_column_weight": 1020,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5d6393f6774b2",
Expand All @@ -88,7 +90,8 @@
"show_column_sortable": 1,
"show_column_weight": 1030,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5d6393f6774ba",
Expand All @@ -113,7 +116,8 @@
"show_column_sortable": 1,
"show_column_weight": 1040,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5d6393f6774c3",
Expand All @@ -136,7 +140,8 @@
"show_column_sortable": 1,
"show_column_weight": 1050,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
},
{
"key": "field_5d6393f6774cb",
Expand All @@ -157,7 +162,8 @@
"show_column_sortable": 1,
"show_column_weight": 1060,
"allow_quickedit": 1,
"allow_bulkedit": 1
"allow_bulkedit": 1,
"allow_backendsearch": 1
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion test/acf-json/group_acf_qef_choice.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"active": 0,
"description": "",
"show_in_rest": 1,
"modified": 1666994207
Expand Down
4 changes: 2 additions & 2 deletions test/acf-json/group_acf_qef_choice_var_grouped.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": false,
"active": 0,
"description": "",
"modified": 1629878664
}
}
4 changes: 2 additions & 2 deletions test/acf-json/group_acf_qef_layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": false,
"active": 0,
"description": "",
"modified": 1629878689
}
}
67 changes: 67 additions & 0 deletions test/acf-json/group_acf_qef_location.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"key": "group_acf_qef_location",
"title": "QuickEdit Fields Location",
"fields": [
{
"key": "field_5123e3f0aee8x",
"label": "Location Text",
"name": "text_loc",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": "",
"show_column": 1,
"show_column_sortable": 1,
"show_column_weight": 1010,
"allow_quickedit": 1,
"allow_bulkedit": 1,
"allow_backendsearch": 1
}
],
"location": [
[
{
"param": "post_type",
"operator": "!=",
"value": "acf-quef-test"
},
{
"param": "post_category",
"operator": "!=",
"value": "category:fitness"
}
],
[
{
"param": "post_type",
"operator": "==",
"value": "post"
},
{
"param": "post_category",
"operator": "!=",
"value": "category:fitness"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1573293514,
"qef_simple_location_rules": 0
}
67 changes: 67 additions & 0 deletions test/acf-json/group_acf_qef_location_simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"key": "group_acf_qef_location_simple",
"title": "QuickEdit Fields Location Simple",
"fields": [
{
"key": "field_5123e3f0aee8y",
"label": "Location Simple Text",
"name": "text_loc_simple",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": "",
"show_column": 1,
"show_column_sortable": 1,
"show_column_weight": 1010,
"allow_quickedit": 1,
"allow_bulkedit": 1,
"allow_backendsearch": 1
}
],
"location": [
[
{
"param": "post_type",
"operator": "!=",
"value": "acf-quef-test"
},
{
"param": "post_category",
"operator": "!=",
"value": "category:fitness"
}
],
[
{
"param": "post_type",
"operator": "==",
"value": "post"
},
{
"param": "post_category",
"operator": "!=",
"value": "category:fitness"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1573293514,
"qef_simple_location_rules": 1
}
2 changes: 1 addition & 1 deletion test/acf-json/group_acf_qef_relational.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"active": 0,
"description": "",
"show_in_rest": 0,
"modified": 1667041142
Expand Down

0 comments on commit 4ec0aea

Please sign in to comment.