Skip to content

Commit

Permalink
test(doctrine): type json_array is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Nov 9, 2021
1 parent 950bdfe commit c8ef434
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion composer.json
Expand Up @@ -33,7 +33,6 @@
"doctrine/cache": "^1.11",
"doctrine/common": "^2.11 || ^3.0",
"doctrine/data-fixtures": "^1.2.2",
"doctrine/dbal": "^2.6",
"doctrine/doctrine-bundle": "^1.12 || ^2.0",
"doctrine/mongodb-odm": "^2.2",
"doctrine/mongodb-odm-bundle": "^4.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/Bridge/Doctrine/Common/Filter/SearchFilterTestTrait.php
Expand Up @@ -108,14 +108,14 @@ public function testGetDescription()
],
'jsonData' => [
'property' => 'jsonData',
'type' => 'string',
'type' => 'array',
'required' => false,
'strategy' => 'exact',
'is_collection' => false,
],
'jsonData[]' => [
'property' => 'jsonData',
'type' => 'string',
'type' => 'array',
'required' => false,
'strategy' => 'exact',
'is_collection' => true,
Expand Down
4 changes: 2 additions & 2 deletions tests/Bridge/Doctrine/MongoDbOdm/Filter/SearchFilterTest.php
Expand Up @@ -157,14 +157,14 @@ public function testGetDescriptionDefaultFields()
],
'jsonData' => [
'property' => 'jsonData',
'type' => 'string',
'type' => 'array',
'required' => false,
'strategy' => 'exact',
'is_collection' => false,
],
'jsonData[]' => [
'property' => 'jsonData',
'type' => 'string',
'type' => 'array',
'required' => false,
'strategy' => 'exact',
'is_collection' => true,
Expand Down
4 changes: 2 additions & 2 deletions tests/Bridge/Doctrine/Orm/Filter/SearchFilterTest.php
Expand Up @@ -160,14 +160,14 @@ public function testGetDescriptionDefaultFields()
],
'jsonData' => [
'property' => 'jsonData',
'type' => 'string',
'type' => 'array',
'required' => false,
'strategy' => 'exact',
'is_collection' => false,
],
'jsonData[]' => [
'property' => 'jsonData',
'type' => 'string',
'type' => 'array',
'required' => false,
'strategy' => 'exact',
'is_collection' => true,
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/TestBundle/Entity/Dummy.php
Expand Up @@ -135,7 +135,7 @@ class Dummy
/**
* @var array serialize data
*
* @ORM\Column(type="json_array", nullable=true)
* @ORM\Column(type="array", nullable=true)
*/
public $jsonData;

Expand Down

0 comments on commit c8ef434

Please sign in to comment.