@@ -368,7 +368,7 @@ public function testListExampleFromReadmeWithExclude()
368
368
{
369
369
$ test = new API ($ this );
370
370
$ test ->get ('/posts?exclude=id&filter=id,eq,1 ' );
371
- $ test ->expect ('"posts":{"columns":["user_id","category_id","content"],"records":[[1,1,"blog started"]]}} ' );
371
+ $ test ->expect ('{ "posts":{"columns":["user_id","category_id","content"],"records":[[1,1,"blog started"]]}} ' );
372
372
}
373
373
374
374
public function testListExampleFromReadme ()
@@ -389,7 +389,7 @@ public function testListExampleFromReadmeWithTransformWithExclude()
389
389
{
390
390
$ test = new API ($ this );
391
391
$ test ->get ('/posts?include=categories,tags,comments&exclude=comments.message&filter=id,eq,1&transform=1 ' );
392
- $ test ->expect ('{"posts":[{"id":1,"post_tags":[{"id":1,"post_id":1,"tag_id":1,"tags":[{"id":1,"name":"funny"}]},{"id":2,"post_id":1,"tag_id":2,"tags":[{"id":2,"name":"important"}]}],"comments":[{"id":1,"post_id":1,"message":"great" },{"id":2,"post_id":1,"message":"fantastic" }],"user_id":1,"category_id":1,"categories":[{"id":1,"name":"announcement","icon":null}],"content":"blog started"}]} ' );
392
+ $ test ->expect ('{"posts":[{"id":1,"post_tags":[{"id":1,"post_id":1,"tag_id":1,"tags":[{"id":1,"name":"funny"}]},{"id":2,"post_id":1,"tag_id":2,"tags":[{"id":2,"name":"important"}]}],"comments":[{"id":1,"post_id":1},{"id":2,"post_id":1}],"user_id":1,"category_id":1,"categories":[{"id":1,"name":"announcement","icon":null}],"content":"blog started"}]} ' );
393
393
}
394
394
395
395
public function testEditCategoryWithBinaryContent ()
@@ -450,7 +450,7 @@ public function testOptionsRequest()
450
450
{
451
451
$ test = new API ($ this );
452
452
$ test ->options ('/posts/2 ' );
453
- $ test ->expect ('["Access-Control-Allow-Headers: Content-Type","Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH","Access-Control-Allow-Credentials: true","Access-Control-Max-Age: 1728000"] ' ,false );
453
+ $ test ->expect ('["Access-Control-Allow-Headers: Content-Type, X-XSRF-Token ","Access-Control-Allow-Methods: OPTIONS, GET, PUT, POST, DELETE, PATCH","Access-Control-Allow-Credentials: true","Access-Control-Max-Age: 1728000"] ' ,false );
454
454
}
455
455
456
456
public function testHidingPasswordColumn ()
0 commit comments