create(); $depreciation = Depreciation::factory()->create(['months' => 0]); $asset->model->depreciation()->associate($depreciation); $transformer = new DepreciationReportTransformer; $result = $transformer->transformAsset($asset); $this->assertIsArray($result); } }