From 0003b10b0245086bb2bbc6f31416a1dd8498950b Mon Sep 17 00:00:00 2001
From: Alexander Makarov <sam@rmcreative.ru>
Date: Mon, 2 Jun 2014 18:14:02 +0400
Subject: [PATCH] ElasticSearch tests fix

---
 tests/unit/extensions/elasticsearch/ActiveRecordTest.php |  9 +++++++++
 tests/unit/framework/ar/ActiveRecordTestTrait.php        |  4 ++--
 tests/unit/framework/db/ActiveRecordTest.php             |  2 +-
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/tests/unit/extensions/elasticsearch/ActiveRecordTest.php b/tests/unit/extensions/elasticsearch/ActiveRecordTest.php
index 125df42..9c8d7a8 100644
--- a/tests/unit/extensions/elasticsearch/ActiveRecordTest.php
+++ b/tests/unit/extensions/elasticsearch/ActiveRecordTest.php
@@ -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()
      */
diff --git a/tests/unit/framework/ar/ActiveRecordTestTrait.php b/tests/unit/framework/ar/ActiveRecordTestTrait.php
index 2e51c82..a8960b4 100644
--- a/tests/unit/framework/ar/ActiveRecordTestTrait.php
+++ b/tests/unit/framework/ar/ActiveRecordTestTrait.php
@@ -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
diff --git a/tests/unit/framework/db/ActiveRecordTest.php b/tests/unit/framework/db/ActiveRecordTest.php
index 707e80d..551717a 100644
--- a/tests/unit/framework/db/ActiveRecordTest.php
+++ b/tests/unit/framework/db/ActiveRecordTest.php
@@ -52,7 +52,7 @@ class ActiveRecordTest extends DatabaseTestCase
     {
         return OrderWithNullFK::className();
     }
-    public function getOrderIteWithNullFKmClass()
+    public function getOrderItemWithNullFKmClass()
     {
         return OrderItemWithNullFK::className();
     }
--
libgit2 0.27.1