🇮🇳India @asmasiddiquiCG

Account created on 2 March 2023, over 1 year ago
#

Recent comments

🇮🇳India asmasiddiquiCG

I am unable to solve the error thrown in patch test, can someone guide?

Error below
1) Drupal\Tests\jsonapi\Functional\MediaTest::testPostIndividual
The 'errors' member was not as expected.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
0 => Array (
0 => '422'
1 => 'Unprocessable Content'
- 2 => 'name: Name: this field cannot hold more than 1 values.'
+ 2 => 'field_media_file.0: The file you uploaded is empty! Please check whether you want to upload the selected file'
3 => Array (
- 0 => '/data/attributes/name'
+ 0 => '/data/attributes/field_media_file/0'
)
)
+ 1 => Array (...)
)

🇮🇳India asmasiddiquiCG

Resolved test errors and resubmitting the patch

🇮🇳India asmasiddiquiCG

Fixed the spell checks and wide spacing

🇮🇳India asmasiddiquiCG

This patch adds a validator for checking file size and returns error to user if the file is blank

Production build 0.69.0 2024