From 4f8d4ede3eed178af2e29778625a82057327aa5d Mon Sep 17 00:00:00 2001
From: Joan He <joan@x.com>
Date: Fri, 23 Jan 2015 11:08:44 -0600
Subject: [PATCH] MAGETWO-32913: added unit tests for classes under
 lib/internal/Magento/Framework/App/Router

---
 .../Magento/Framework/App/Router/ActionListTest.php   | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dev/tests/unit/testsuite/Magento/Framework/App/Router/ActionListTest.php b/dev/tests/unit/testsuite/Magento/Framework/App/Router/ActionListTest.php
index aacf7f3944d..c31e5e2ac68 100644
--- a/dev/tests/unit/testsuite/Magento/Framework/App/Router/ActionListTest.php
+++ b/dev/tests/unit/testsuite/Magento/Framework/App/Router/ActionListTest.php
@@ -109,11 +109,12 @@ class ActionListTest extends \PHPUnit_Framework_TestCase
 
     public function getDataProvider()
     {
+        $mockClassName = 'Mock_Action_Class';
         $actionClass = $this->getMockClass(
             'Magento\Framework\App\ActionInterface',
             ['dispatch', 'getResponse'],
             [],
-            'Magento_Module_Controller_Area_Namespace_Index'
+            $mockClassName
         );
 
         return [
@@ -122,7 +123,7 @@ class ActionListTest extends \PHPUnit_Framework_TestCase
                 'Area',
                 'Namespace',
                 'Index',
-                ['magento\module\controller\area\namespace\index' => 'Magento_Module_Controller_Area_Namespace_Index'],
+                ['magento\module\controller\area\namespace\index' => $mockClassName],
                 $actionClass
             ],
             [
@@ -130,7 +131,7 @@ class ActionListTest extends \PHPUnit_Framework_TestCase
                 '',
                 'Namespace',
                 'Index',
-                ['magento\module\controller\namespace\index' => 'Magento_Module_Controller_Area_Namespace_Index'],
+                ['magento\module\controller\namespace\index' => $mockClassName],
                 $actionClass
             ],
             [
@@ -138,7 +139,7 @@ class ActionListTest extends \PHPUnit_Framework_TestCase
                 'Area',
                 'Namespace',
                 'Catch',
-                ['magento\module\controller\area\namespace\catchaction' => 'Magento_Module_Controller_Area_Namespace_Index'],
+                ['magento\module\controller\area\namespace\catchaction' => $mockClassName],
                 $actionClass
             ],
             [
@@ -146,7 +147,7 @@ class ActionListTest extends \PHPUnit_Framework_TestCase
                 'Area',
                 'Namespace',
                 'Index',
-                ['magento\module\controller\area\namespace\index' => 'Magento_Module_Controller_Area_Namespace_Index2'],
+                ['magento\module\controller\area\namespace\index' => 'Not_Exist_Class'],
                 null
             ],
             [
-- 
GitLab