Skip to content

Commit

Permalink
fix query helper responses
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Jan 22, 2024
1 parent f4cab05 commit 0c42e4e
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions tests/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 0c42e4e

Please sign in to comment.