diff --git a/test/ItopTestCase.php b/test/ItopTestCase.php index 6dc33b279..16b9a2f1f 100644 --- a/test/ItopTestCase.php +++ b/test/ItopTestCase.php @@ -97,9 +97,9 @@ class ItopTestCase extends TestCase return $sId; } - public function InvokeInvisibleStaticMethod($sObjectClass, $sMethodName, $aArgs) + public function InvokeNonPublicStaticMethod($sObjectClass, $sMethodName, $aArgs) { - return $this->InvokeInvisibleMethod($sObjectClass, $sMethodName, null, $aArgs); + return $this->InvokeNonPublicMethod($sObjectClass, $sMethodName, null, $aArgs); } /** @@ -112,7 +112,7 @@ class ItopTestCase extends TestCase * * @throws \ReflectionException */ - public function InvokeInvisibleMethod($sObjectClass, $sMethodName, $oObject, $aArgs) + public function InvokeNonPublicMethod($sObjectClass, $sMethodName, $oObject, $aArgs) { $class = new \ReflectionClass($sObjectClass); $method = $class->getMethod($sMethodName); diff --git a/test/core/DBSearchUpdateRealiasingMapTest.php b/test/core/DBSearchUpdateRealiasingMapTest.php index 8d363869c..dd090bdc9 100644 --- a/test/core/DBSearchUpdateRealiasingMapTest.php +++ b/test/core/DBSearchUpdateRealiasingMapTest.php @@ -35,7 +35,7 @@ class DBSearchUpdateRealiasingMapTest extends ItopDataTestCase { $oObject = new DBObjectSearch('Organization'); $aArgs = [&$aRealiasingMap, $aAliasTranslation]; - $this->InvokeInvisibleMethod(DBObjectSearch::class, 'UpdateRealiasingMap', $oObject, $aArgs); + $this->InvokeNonPublicMethod(DBObjectSearch::class, 'UpdateRealiasingMap', $oObject, $aArgs); $this->assertEquals($aExpectedRealiasingMap, $aRealiasingMap); }