You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -234,6 +244,8 @@ public function testIntegerAsString(): void
234
244
'published' => true,
235
245
'tags' => ['dog', 'cat', 'mouse'],
236
246
'feedback' => 'team@appwrite.io',
247
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
248
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
237
249
])));
238
250
239
251
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid integer', $validator->getDescription());
@@ -252,6 +264,8 @@ public function testValidDocument(): void
252
264
'published' => true,
253
265
'tags' => ['dog', 'cat', 'mouse'],
254
266
'feedback' => 'team@appwrite.io',
267
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
268
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
255
269
])));
256
270
}
257
271
@@ -268,6 +282,8 @@ public function testStringValidation(): void
268
282
'published' => true,
269
283
'tags' => ['dog', 'cat', 'mouse'],
270
284
'feedback' => 'team@appwrite.io',
285
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
286
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
271
287
])));
272
288
273
289
$this->assertEquals('Invalid document structure: Attribute "title" has invalid type. Value must be a valid string and no longer than 256 chars', $validator->getDescription());
@@ -286,6 +302,8 @@ public function testArrayOfStringsValidation(): void
286
302
'published' => true,
287
303
'tags' => [1, 'cat', 'mouse'],
288
304
'feedback' => 'team@appwrite.io',
305
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
306
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
289
307
])));
290
308
291
309
$this->assertEquals('Invalid document structure: Attribute "tags[\'0\']" has invalid type. Value must be a valid string and no longer than 55 chars', $validator->getDescription());
@@ -299,6 +317,8 @@ public function testArrayOfStringsValidation(): void
299
317
'published' => true,
300
318
'tags' => [true],
301
319
'feedback' => 'team@appwrite.io',
320
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
321
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
302
322
])));
303
323
304
324
$this->assertEquals('Invalid document structure: Attribute "tags[\'0\']" has invalid type. Value must be a valid string and no longer than 55 chars', $validator->getDescription());
@@ -312,6 +332,8 @@ public function testArrayOfStringsValidation(): void
$this->assertEquals('Invalid document structure: Attribute "tags[\'0\']" has invalid type. Value must be a valid string and no longer than 55 chars', $validator->getDescription());
@@ -343,7 +367,9 @@ public function testArrayAsObjectValidation(): void
343
367
'price' => 1.99,
344
368
'published' => true,
345
369
'tags' => ['name' => 'dog'],
346
-
'feedback' => 'team@appwrite.io'
370
+
'feedback' => 'team@appwrite.io',
371
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
372
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
347
373
])));
348
374
}
349
375
@@ -359,7 +385,9 @@ public function testArrayOfObjectsValidation(): void
359
385
'price' => 1.99,
360
386
'published' => true,
361
387
'tags' => [['name' => 'dog']],
362
-
'feedback' => 'team@appwrite.io'
388
+
'feedback' => 'team@appwrite.io',
389
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
390
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
363
391
])));
364
392
}
365
393
@@ -376,6 +404,8 @@ public function testIntegerValidation(): void
376
404
'published' => false,
377
405
'tags' => ['dog', 'cat', 'mouse'],
378
406
'feedback' => 'team@appwrite.io',
407
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
408
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
379
409
])));
380
410
381
411
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid integer', $validator->getDescription());
@@ -389,6 +419,8 @@ public function testIntegerValidation(): void
389
419
'published' => false,
390
420
'tags' => ['dog', 'cat', 'mouse'],
391
421
'feedback' => 'team@appwrite.io',
422
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
423
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
392
424
])));
393
425
394
426
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid integer', $validator->getDescription());
@@ -408,6 +440,8 @@ public function testArrayOfIntegersValidation(): void
@@ -444,6 +482,8 @@ public function testArrayOfIntegersValidation(): void
444
482
'published' => true,
445
483
'tags' => ['dog', 'cat', 'mouse'],
446
484
'feedback' => 'team@appwrite.io',
485
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
486
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
447
487
])));
448
488
449
489
$this->assertEquals('Invalid document structure: Attribute "reviews[\'0\']" has invalid type. Value must be a valid integer', $validator->getDescription());
@@ -462,6 +502,8 @@ public function testFloatValidation(): void
462
502
'published' => false,
463
503
'tags' => ['dog', 'cat', 'mouse'],
464
504
'feedback' => 'team@appwrite.io',
505
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
506
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
465
507
])));
466
508
467
509
$this->assertEquals('Invalid document structure: Attribute "price" has invalid type. Value must be a valid float', $validator->getDescription());
@@ -475,6 +517,8 @@ public function testFloatValidation(): void
475
517
'published' => false,
476
518
'tags' => ['dog', 'cat', 'mouse'],
477
519
'feedback' => 'team@appwrite.io',
520
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
521
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
478
522
])));
479
523
480
524
$this->assertEquals('Invalid document structure: Attribute "price" has invalid type. Value must be a valid float', $validator->getDescription());
@@ -493,6 +537,8 @@ public function testBooleanValidation(): void
493
537
'published' => 1,
494
538
'tags' => ['dog', 'cat', 'mouse'],
495
539
'feedback' => 'team@appwrite.io',
540
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
541
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
496
542
])));
497
543
498
544
$this->assertEquals('Invalid document structure: Attribute "published" has invalid type. Value must be a valid boolean', $validator->getDescription());
@@ -506,6 +552,8 @@ public function testBooleanValidation(): void
506
552
'published' => '',
507
553
'tags' => ['dog', 'cat', 'mouse'],
508
554
'feedback' => 'team@appwrite.io',
555
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
556
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
509
557
])));
510
558
511
559
$this->assertEquals('Invalid document structure: Attribute "published" has invalid type. Value must be a valid boolean', $validator->getDescription());
@@ -524,6 +572,8 @@ public function testFormatValidation(): void
524
572
'published' => true,
525
573
'tags' => ['dog', 'cat', 'mouse'],
526
574
'feedback' => 'team_appwrite.io',
575
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
576
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
527
577
])));
528
578
529
579
$this->assertEquals('Invalid document structure: Attribute "feedback" has invalid format. Value must be a valid email address', $validator->getDescription());
@@ -542,6 +592,8 @@ public function testIntegerMaxRange(): void
542
592
'published' => true,
543
593
'tags' => ['dog', 'cat', 'mouse'],
544
594
'feedback' => 'team@appwrite.io',
595
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
596
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
545
597
])));
546
598
547
599
$this->assertEquals('Invalid document structure: Attribute "rating" has invalid type. Value must be a valid range between -2,147,483,647 and 2,147,483,647', $validator->getDescription());
@@ -560,6 +612,8 @@ public function testDoubleUnsigned(): void
560
612
'published' => true,
561
613
'tags' => ['dog', 'cat', 'mouse'],
562
614
'feedback' => 'team@appwrite.io',
615
+
'$createdAt' => '2000-04-01T12:00:00.000+00:00',
616
+
'$updatedAt' => '2000-04-01T12:00:00.000+00:00'
563
617
])));
564
618
565
619
$this->assertStringContainsString('Invalid document structure: Attribute "price" has invalid type. Value must be a valid range between 0 and ', $validator->getDescription());
@@ -578,6 +632,8 @@ public function testDoubleMaxRange(): void
0 commit comments