diff --git a/tests/Base.php b/tests/Base.php index b4a1d2f10..fd0892737 100644 --- a/tests/Base.php +++ b/tests/Base.php @@ -67,29 +67,29 @@ abstract class Base extends TestCase ]; protected const QUERY_HELPER_RESPONSES = [ - '{ "method": "equal", "attribute": "released", "values": [true]}', - '{ "method": "equal", "attribute": "title", "values": ["Spiderman", "Dr. Strange"]}', - '{ "method": "notEqual", "attribute": "title", "values": ["Spiderman"]}', - '{ "method": "lessThan", "attribute": "releasedYear", "values": [1990]}', - '{ "method": "greaterThan", "attribute": "releasedYear", "values": [1990]}', - '{ "method": "search", "attribute": "name", "values": ["john"]}', - '{ "method": "isNull", "attribute": "name"}', - '{ "method": "isNotNull", "attribute": "name"}', - '{ "method": "between", "attribute": "age", "values": [50, 100]}', - '{ "method": "between", "attribute": "age", "values": [50.5, 100.5]}', - '{ "method": "between", "attribute": "name", "values": ["Anna", "Brad"]}', - '{ "method": "startsWith", "attribute": "name", "values": ["Ann"]}', - '{ "method": "endsWith", "attribute": "name", "values": ["nne"]}', - '{ "method": "select", "values": [["name", "age"]]}', - '{ "method": "orderAsc", "attribute": "title"}', - '{ "method": "orderDesc", "attribute": "title"}', - '{ "method": "cursorAfter", "values": ["my_movie_id"]}', - '{ "method": "cursorBefore", "values": ["my_movie_id"]}', - '{ "method": "limit", "values": [50]}', - '{ "method": "offset", "values": [20]}', - '{ "method": "contains", "attribute": "title", "values": ["Spider"] }', - '{ "method": "contains", "attribute": "labels", "values": ["first"] }', - '{ "method": "or", "values": [{ "method": "equal", "attribute": "released", "values": [true] }, { "method": "lessThan", "attribute": "releasedYear", "values": [1990] }] }', + '{"method":"equal","attribute":"released","values":[true]}', + '{"method":"equal","attribute":"title","values":["Spiderman","Dr. Strange"]}', + '{"method":"notEqual","attribute":"title","values":["Spiderman"]}', + '{"method":"lessThan","attribute":"releasedYear","values":[1990]}', + '{"method":"greaterThan","attribute":"releasedYear","values":[1990]}', + '{"method":"search","attribute":"name","values":["john"]}', + '{"method":"isNull","attribute":"name"}', + '{"method":"isNotNull","attribute":"name"}', + '{"method":"between","attribute":"age","values":[50,100]}', + '{"method":"between","attribute":"age","values":[50.5,100.5]}', + '{"method":"between","attribute":"name","values":["Anna","Brad"]}', + '{"method":"startsWith","attribute":"name","values":["Ann"]}', + '{"method":"endsWith","attribute":"name","values":["nne"]}', + '{"method":"select","values":["name","age"]}', + '{"method":"orderAsc","attribute":"title"}', + '{"method":"orderDesc","attribute":"title"}', + '{"method":"cursorAfter","values":["my_movie_id"]}', + '{"method":"cursorBefore","values":["my_movie_id"]}', + '{"method":"limit","values":[50]}', + '{"method":"offset","values":[20]}', + '{"method":"contains","attribute":"title","values":["Spider"]}', + '{"method":"contains","attribute":"labels","values":["first"]}', + '{"method":"or","values":[{"method":"equal","attribute":"released","values":[true]},{"method":"lessThan","attribute":"releasedYear","values":[1990]}]}', ]; protected const PERMISSION_HELPER_RESPONSES = [