Browse Source

Fix PHPUnit tests (#3911)

Some method had the same name as PHPUnit test case.
Sullivan SENECHAL 9 năm trước cách đây
mục cha
commit
1ca104601b

+ 4 - 4
Tests/Mapper/BaseGroupedMapperTest.php

@@ -55,13 +55,13 @@ class BaseGroupedMapperTest extends \PHPUnit_Framework_TestCase
         $this->baseGroupedMapper->expects($this->any())
         $this->baseGroupedMapper->expects($this->any())
             ->method('getGroups')
             ->method('getGroups')
             ->will($this->returnCallback(function () use ($object) {
             ->will($this->returnCallback(function () use ($object) {
-                return $object->getGroups();
+                return $object->getTestGroups();
             }));
             }));
 
 
         $this->baseGroupedMapper->expects($this->any())
         $this->baseGroupedMapper->expects($this->any())
             ->method('setGroups')
             ->method('setGroups')
             ->will($this->returnCallback(function (array $groups) use ($object) {
             ->will($this->returnCallback(function (array $groups) use ($object) {
-                $object->setGroups($groups);
+                $object->setTestGroups($groups);
             }));
             }));
     }
     }
 
 
@@ -162,12 +162,12 @@ class BaseGroupedMapperTest extends \PHPUnit_Framework_TestCase
         $this->tabs = $tabs;
         $this->tabs = $tabs;
     }
     }
 
 
-    public function getGroups()
+    public function getTestGroups()
     {
     {
         return $this->groups;
         return $this->groups;
     }
     }
 
 
-    public function setGroups($groups)
+    public function setTestGroups($groups)
     {
     {
         $this->groups = $groups;
         $this->groups = $groups;
     }
     }