浏览代码

Fix tests

shalvah 5 年之前
父节点
当前提交
f1f27591c0
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      composer.dingo.json
  2. 1 1
      tests/Extracting/Strategies/Responses/UseApiResourceTagsTest.php

+ 1 - 1
composer.dingo.json

@@ -33,7 +33,7 @@
     "require-dev": {
         "dms/phpunit-arraysubset-asserts": "^0.1.0",
         "brianium/paratest": "^4.0",
-        "league/fractal": "^0.19.0",
+        "league/fractal": "^0.17.2",
         "orchestra/testbench": "^3.7|^4.0|^5.0",
         "phpstan/phpstan": "^0.12.19",
         "phpunit/phpunit": "^8.0"

+ 1 - 1
tests/Extracting/Strategies/Responses/UseApiResourceTagsTest.php

@@ -101,7 +101,7 @@ class UseApiResourceTagsTest extends TestCase
         $factory->afterMaking(TestUser::class, function (TestUser $user, $faker) {
             if ($user->id === 4) {
                 $child = factory(TestUser::class)->make(['id' => 5, 'parent_id' => 4]);
-                $user->setRelation('children', collect($child));
+                $user->setRelation('children', collect([$child]));
             }
         });