From 96b448e63536ab42531c9404b47886a4da60b589 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 23 Jan 2019 06:25:53 +1100 Subject: [PATCH] dev/core#676 Disable GeoCoding Tests for PR jobs and re-enable Mailing Test jobs for PRs previously disabled now fixed --- tests/phpunit/CRM/Utils/GeocodeTest.php | 8 ++++++++ tests/phpunit/api/v3/JobProcessMailingTest.php | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Utils/GeocodeTest.php b/tests/phpunit/CRM/Utils/GeocodeTest.php index 4c6bb1bb12..68ea1f5c33 100644 --- a/tests/phpunit/CRM/Utils/GeocodeTest.php +++ b/tests/phpunit/CRM/Utils/GeocodeTest.php @@ -13,6 +13,10 @@ class CRM_Utils_GeocodeTest extends CiviUnitTestCase { parent::tearDown(); } + /** + * Test the format returned by Google GeoCoding + * @group ornery + */ public function testStateProvinceFormat() { $params = array('state_province_id' => 1022, 'country' => 'U.S.A'); $formatted = CRM_Utils_Geocode_Google::format($params); @@ -24,6 +28,10 @@ class CRM_Utils_GeocodeTest extends CiviUnitTestCase { $this->assertApproxEquals('-94.68', $params['geo_code_2'], 1); } + /** + * Test Geoging Method off + * @group ornery + */ public function testGeocodeMethodOff() { // Set a geocoding provider. $result = civicrm_api3('Setting', 'create', array( diff --git a/tests/phpunit/api/v3/JobProcessMailingTest.php b/tests/phpunit/api/v3/JobProcessMailingTest.php index 0c49a9def6..7bf7396b77 100644 --- a/tests/phpunit/api/v3/JobProcessMailingTest.php +++ b/tests/phpunit/api/v3/JobProcessMailingTest.php @@ -337,7 +337,6 @@ class api_v3_JobProcessMailingTest extends CiviUnitTestCase { * The total number of contacts for whom messages should have * been sent. * @dataProvider concurrencyExamples - * @group ornery */ public function testConcurrency($settings, $expectedTallies, $expectedTotal) { $settings = array_merge($this->defaultSettings, $settings); -- 2.25.1