Commit 0003b10b by Alexander Makarov

ElasticSearch tests fix

parent 8aee4759
...@@ -40,6 +40,15 @@ class ActiveRecordTest extends ElasticSearchTestCase ...@@ -40,6 +40,15 @@ class ActiveRecordTest extends ElasticSearchTestCase
return OrderItem::className(); return OrderItem::className();
} }
public function getOrderWithNullFKClass()
{
return OrderWithNullFK::className();
}
public function getOrderItemWithNullFKmClass()
{
return OrderItemWithNullFK::className();
}
/** /**
* can be overridden to do things after save() * can be overridden to do things after save()
*/ */
......
...@@ -681,7 +681,7 @@ trait ActiveRecordTestTrait ...@@ -681,7 +681,7 @@ trait ActiveRecordTestTrait
/** @var \yii\db\ActiveRecordInterface $orderWithNullFKClass */ /** @var \yii\db\ActiveRecordInterface $orderWithNullFKClass */
$orderWithNullFKClass = $this->getOrderWithNullFKClass(); $orderWithNullFKClass = $this->getOrderWithNullFKClass();
/** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */ /** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */
$orderItemsWithNullFKClass = $this->getOrderIteWithNullFKmClass(); $orderItemsWithNullFKClass = $this->getOrderItemWithNullFKmClass();
...@@ -732,7 +732,7 @@ trait ActiveRecordTestTrait ...@@ -732,7 +732,7 @@ trait ActiveRecordTestTrait
$orderWithNullFKClass = $this->getOrderWithNullFKClass(); $orderWithNullFKClass = $this->getOrderWithNullFKClass();
/** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */ /** @var \yii\db\ActiveRecordInterface $orderItemsWithNullFKClass */
$orderItemsWithNullFKClass = $this->getOrderIteWithNullFKmClass(); $orderItemsWithNullFKClass = $this->getOrderItemWithNullFKmClass();
/** @var TestCase|ActiveRecordTestTrait $this */ /** @var TestCase|ActiveRecordTestTrait $this */
// has many with delete // has many with delete
......
...@@ -52,7 +52,7 @@ class ActiveRecordTest extends DatabaseTestCase ...@@ -52,7 +52,7 @@ class ActiveRecordTest extends DatabaseTestCase
{ {
return OrderWithNullFK::className(); return OrderWithNullFK::className();
} }
public function getOrderIteWithNullFKmClass() public function getOrderItemWithNullFKmClass()
{ {
return OrderItemWithNullFK::className(); 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