diff --git a/tests/generators/ModelGeneratorTest.php b/tests/generators/ModelGeneratorTest.php index 2eade2a90..c854cbf3b 100644 --- a/tests/generators/ModelGeneratorTest.php +++ b/tests/generators/ModelGeneratorTest.php @@ -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, ],