jeudi 14 novembre 2019

Behat test don't send the same information on database with a json array

Hi everyone this is my first question in the stackoverflow world!

In my features when i execute my behat test i send it like this :

 And the following user:
 | id  | array                               |
 | ID1 | [{"key1":"value1","key2":"value2"}] |

But in my database i receive this information

| id  | array (DC2Type:json_array)                        |
| ID1 | ["[{\"key1\":\"value1\"","\"key2\":\"value2\"}]"] |

So i can't use this informations on my array. Have you got any idea which expression i have to use for have the same informations like tests entries?

I precise i work with symfony 3.4.15, API Platform and PhpMyAdmin

Thank you!

Aucun commentaire:

Enregistrer un commentaire