Skip to content

Commit b037265

Browse files
committed
Fix failing test
1 parent 52f2320 commit b037265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fixtures/non-db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'catsCount' => (new Attribute('catsCount', ['phpType' => 'int', 'dbType' => 'integer'])),
2222
'summary' => (new Attribute('summary', ['phpType' => 'string', 'dbType' => 'text'])),
2323
'parentPet' => (new Attribute('parentPet', ['phpType' => 'int', 'dbType' => 'bigint']))
24-
->asReference('Pet')->setDescription('A Pet'),
24+
->asReference('Pet')->setDescription('A Pet')->setFakerStub('$faker->randomElement(\app\models\Pet::find()->select("id")->column())'),
2525
],
2626
'relations' => [
2727
'parentPet' => new AttributeRelation('parentPet', 'pets', 'Pet', 'hasOne', ['id' => 'parentPet_id']),

0 commit comments

Comments
 (0)