forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update/a2p Consolidate country data in api-core-tests (woocommerce#35557
) * Consolidate country data * update test data * remove upper case files * remove upper case files * remove upper case files * update country data tests * countries states updates for local * revert settings-crud.test
- Loading branch information
1 parent
fd7c728
commit c35d624
Showing
252 changed files
with
12,070 additions
and
20,706 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
plugins/woocommerce/changelog/update-country-data-api-core-tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: update | ||
|
||
Update country data in api-core-tests to prevent numerous test data updates |
17 changes: 17 additions & 0 deletions
17
plugins/woocommerce/tests/api-core-tests/data/countries/ad.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"code": "AD", | ||
"name": "Andorra", | ||
"states": [], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ad" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
plugins/woocommerce/tests/api-core-tests/data/countries/ae.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"code": "AE", | ||
"name": "United Arab Emirates", | ||
"states": [], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ae" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
plugins/woocommerce/tests/api-core-tests/data/countries/af.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"code": "AF", | ||
"name": "Afghanistan", | ||
"states": [], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/af" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
plugins/woocommerce/tests/api-core-tests/data/countries/ag.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"code": "AG", | ||
"name": "Antigua and Barbuda", | ||
"states": [], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ag" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
plugins/woocommerce/tests/api-core-tests/data/countries/ai.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"code": "AI", | ||
"name": "Anguilla", | ||
"states": [], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ai" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
plugins/woocommerce/tests/api-core-tests/data/countries/al.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"code": "AL", | ||
"name": "Albania", | ||
"states": [ | ||
{ | ||
"code": "AL-01", | ||
"name": "Berat" | ||
}, | ||
{ | ||
"code": "AL-09", | ||
"name": "Dibër" | ||
}, | ||
{ | ||
"code": "AL-02", | ||
"name": "Durrës" | ||
}, | ||
{ | ||
"code": "AL-03", | ||
"name": "Elbasan" | ||
}, | ||
{ | ||
"code": "AL-04", | ||
"name": "Fier" | ||
}, | ||
{ | ||
"code": "AL-05", | ||
"name": "Gjirokastër" | ||
}, | ||
{ | ||
"code": "AL-06", | ||
"name": "Korçë" | ||
}, | ||
{ | ||
"code": "AL-07", | ||
"name": "Kukës" | ||
}, | ||
{ | ||
"code": "AL-08", | ||
"name": "Lezhë" | ||
}, | ||
{ | ||
"code": "AL-10", | ||
"name": "Shkodër" | ||
}, | ||
{ | ||
"code": "AL-11", | ||
"name": "Tirana" | ||
}, | ||
{ | ||
"code": "AL-12", | ||
"name": "Vlorë" | ||
} | ||
], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/al" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
plugins/woocommerce/tests/api-core-tests/data/countries/am.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"code": "AM", | ||
"name": "Armenia", | ||
"states": [], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/am" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
plugins/woocommerce/tests/api-core-tests/data/countries/ao.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"code": "AO", | ||
"name": "Angola", | ||
"states": [ | ||
{ | ||
"code": "BGO", | ||
"name": "Bengo" | ||
}, | ||
{ | ||
"code": "BLU", | ||
"name": "Benguela" | ||
}, | ||
{ | ||
"code": "BIE", | ||
"name": "Bié" | ||
}, | ||
{ | ||
"code": "CAB", | ||
"name": "Cabinda" | ||
}, | ||
{ | ||
"code": "CNN", | ||
"name": "Cunene" | ||
}, | ||
{ | ||
"code": "HUA", | ||
"name": "Huambo" | ||
}, | ||
{ | ||
"code": "HUI", | ||
"name": "Huíla" | ||
}, | ||
{ | ||
"code": "CCU", | ||
"name": "Kuando Kubango" | ||
}, | ||
{ | ||
"code": "CNO", | ||
"name": "Kwanza-Norte" | ||
}, | ||
{ | ||
"code": "CUS", | ||
"name": "Kwanza-Sul" | ||
}, | ||
{ | ||
"code": "LUA", | ||
"name": "Luanda" | ||
}, | ||
{ | ||
"code": "LNO", | ||
"name": "Lunda-Norte" | ||
}, | ||
{ | ||
"code": "LSU", | ||
"name": "Lunda-Sul" | ||
}, | ||
{ | ||
"code": "MAL", | ||
"name": "Malanje" | ||
}, | ||
{ | ||
"code": "MOX", | ||
"name": "Moxico" | ||
}, | ||
{ | ||
"code": "NAM", | ||
"name": "Namibe" | ||
}, | ||
{ | ||
"code": "UIG", | ||
"name": "Uíge" | ||
}, | ||
{ | ||
"code": "ZAI", | ||
"name": "Zaire" | ||
} | ||
], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/ao" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
plugins/woocommerce/tests/api-core-tests/data/countries/aq.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"code": "AQ", | ||
"name": "Antarctica", | ||
"states": [], | ||
"_links": { | ||
"self": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries/aq" | ||
} | ||
], | ||
"collection": [ | ||
{ | ||
"href": "http://localhost:8086/wp-json/wc/v3/data/countries" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.