Skip to content

Commit

Permalink
getSupplier
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagotalma committed Nov 6, 2023
1 parent 3002fb2 commit 8e3da38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/generators/ModelGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ public function relationsProvider()
]],
['product_language', 'ProductLanguage.php', false, [
[
'name' => 'function getSupplier()',
'name' => 'function getProduct()',
'relation' => "\$this->hasOne(Product::className(), ['supplier_id' => 'supplier_id', 'id' => 'id']);",
'expected' => true,
],
[
'name' => 'function getSupplier0()',
'name' => 'function getSupplier()',
'relation' => "\$this->hasOne(Supplier::className(), ['id' => 'supplier_id']);",
'expected' => true,
],
Expand Down

0 comments on commit 8e3da38

Please sign in to comment.