diff --git a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php index 96b60cab0a1c7c7b866fd46b1ed43bbd012aa5b7..879fc915e2c91a446dcbeb5ff082dd397f356b64 100755 --- a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php +++ b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php @@ -432,7 +432,7 @@ abstract class SystemTestCase extends PHPUnit_Framework_TestCase $this->changeLanguage($testConfig->language); } - $testRequests = new Collection($api, $testConfig, $api); + $testRequests = $this->getTestRequestsCollection($api, $testConfig, $api); foreach ($testRequests->getRequestUrls() as $apiId => $requestUrl) { $this->_testApiUrl($testName . $testConfig->testSuffix, $apiId, $requestUrl, $testConfig->compareAgainst, $testConfig->xmlFieldsToRemove, $params); @@ -460,6 +460,11 @@ abstract class SystemTestCase extends PHPUnit_Framework_TestCase return count($this->comparisonFailures) == 0; } + protected function getTestRequestsCollection($api, $testConfig, $api) + { + return new Collection($api, $testConfig, $api); + } + private function printComparisonFailures() { $messages = ''; diff --git a/tests/PHPUnit/Framework/TestRequest/Collection.php b/tests/PHPUnit/Framework/TestRequest/Collection.php index 0e9c565d80e2c9c8349a007e67c8b0ed45e7920b..e05ef7d5cdef6e021a3d6654031989a2994c6d57 100644 --- a/tests/PHPUnit/Framework/TestRequest/Collection.php +++ b/tests/PHPUnit/Framework/TestRequest/Collection.php @@ -288,7 +288,7 @@ class Collection return $result; } - private function shouldSkipApiMethod($moduleName, $methodName) { + protected function shouldSkipApiMethod($moduleName, $methodName) { $apiId = $moduleName . '.' . $methodName; // If Api to test were set, we only test these