Commit 0003b10b by Alexander Makarov

ElasticSearch tests fix

parent 8aee4759
......@@ -40,6 +40,15 @@ class ActiveRecordTest extends ElasticSearchTestCase
return OrderItem::className();
}
public function getOrderWithNullFKClass()
{
return OrderWithNullFK::className();
}
public function getOrderItemWithNullFKmClass()
{
return OrderItemWithNullFK::className();
}
/**
* can be overridden to do things after save()
*/
......
......@@ -681,7 +681,7 @@ trait ActiveRecordTestTrait
/** @var \yii\db\ActiveRecordInterface $orderWithNullFKClass */
$orderWithNullFKClass = $this->getOrderWithNullFKClass();
/** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */
$orderItemsWithNullFKClass = $this->getOrderIteWithNullFKmClass();
$orderItemsWithNullFKClass = $this->getOrderItemWithNullFKmClass();
......@@ -732,7 +732,7 @@ trait ActiveRecordTestTrait
$orderWithNullFKClass = $this->getOrderWithNullFKClass();
/** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */
$orderItemsWithNullFKClass = $this->getOrderIteWithNullFKmClass();
$orderItemsWithNullFKClass = $this->getOrderItemWithNullFKmClass();
/** @var TestCase|ActiveRecordTestTrait $this */
// has many with delete
......
......@@ -52,7 +52,7 @@ class ActiveRecordTest extends DatabaseTestCase
{
return OrderWithNullFK::className();
}
public function getOrderIteWithNullFKmClass()
public function getOrderItemWithNullFKmClass()
{
return OrderItemWithNullFK::className();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment