This issue is part of meta issue #1931088: [META] Fixing tests

Simple test failing by following error.

Comments

kenorb’s picture

( ! ) Fatal error: Call to undefined method LocationEarthTest::_assert() in tests/location_testcase.php on line 22
Call Stack
# Time Memory Function Location
1 0.0002 325532 {main}( ) ../index.php:0
2 0.3125 13684828 menu_execute_active_handler( $path = ??? ) ../index.php:18
3 0.3176 14246544 call_user_func_array ( 'system_batch_page', array () ) ../menu.inc:348
4 0.3176 14246676 system_batch_page( ) ../menu.inc:0
5 0.3403 14313680 _batch_page( ) ../system.admin.inc:1841
6 0.3412 14340704 _batch_progress_page_nojs( ) ../batch.inc:39
7 3.6875 28134496 _batch_process( array ('sets' => array (0 => array (...)), 'current_set' => 0, 'progressive' => TRUE, 'url' => 'batch', 'source_page' => 'admin/build/testing', 'redirect' => 'admin/build/testing/results/87', 'id' => '71', 'error_message' => 'Please continue to <a href="/batch?id=71&amp;op=finished">the error page</a>', 'running' => TRUE) ) ../batch.inc:147
8 3.6876 28137032 call_user_func_array ( '_simpletest_batch_operation', array (0 => array (0 => 'CowInstanceTest', 1 => 'LocationCCKTest', 2 => 'LocationEarthTest', 3 => 'LocationGoogleGeocoderTest', 4 => 'LoginSecurityInterfaceTest', 5 => 'LoginSecuritySoftBlockTest', 6 => 'LoginSecurityUserBlockingTest', 7 => 'MollomAccessTestCase', 8 => 'MollomAnalysisTestCase', 9 => 'MollomBlacklistTestCase', 10 => 'MollomCommentFormTestCase', 11 => 'MollomContactFormTestCase', 12 => 'MollomDataTestCase', 13 => 'MollomFallbackTestCase', 14 => 'MollomFormConfigurationTestCase', 15 => 'MollomInstallationTestCase', 16 => 'MollomLanguageDetectionTestCase', 17 => 'MollomProfileFormsTestCase', 18 => 'MollomReportTestCase', 19 => 'MollomResellerTestCase', 20 => 'MollomResponseTestCase', 21 => 'MollomServerListRecoveryTestCase', 22 => 'MollomUserFormsTestCase', 23 => 'NatBasicTest', 24 => 'NatSecondaryTest', 25 => 'NatSettingsTest', 26 => 'OpenSearchTestCase', 27 => 'OpenSearchTokensTestCase', 28 => 'PathautoBookTokenTestCase', 29 => 'PathautoFunctionalTestCase', 30 => 'PathautoLocaleTestCase', 31 => 'PathautoTaxonomyTokenTestCase', 32 => 'PathautoUnitTestCase', 33 => 'PathRedirectFunctionalTest', 34 => 'PathRedirectUnitTest', 35 => 'AUPhoneNumberTestCase', 36 => 'BEPhoneNumberTestCase', 37 => 'BRPhoneNumberTestCase', 38 => 'CAPhoneNumberTestCase', 39 => 'CHPhoneNumberTestCase', 40 => 'CLPhoneNumberTestCase', 41 => 'CNPhoneNumberTestCase', 42 => 'CRPhoneNumberTestCase', 43 => 'CSPhoneNumberTestCase', 44 => 'EGPhoneNumberTestCase', 45 => 'ESPhoneNumberTestCase', 46 => 'HUPhoneNumberTestCase', 47 => 'ILPhoneNumberTestCase', 48 => 'ITPhoneNumberTestCase', 49 => 'JOPhoneNumberTestCase', 50 => 'NLPhoneNumberTestCase', 51 => 'NZPhoneNumberTestCase', 52 => 'PhoneFrenchTest', 53 => 'PhonePanamanianTest', 54 => 'PHPhoneNumberTestCase', 55 => 'PKPhoneNumberTestCase', 56 => 'PLPhoneNumberTestCase', 57 => 'RUPhoneNumberTestCase', 58 => 'SEPhoneNumberTestCase', 59 => 'SGPhoneNumberTestCase', 60 => 'UAPhoneNumberTestCase', 61 => 'UKPhoneNumberTestCase', 62 => 'ZAPhoneNumberTestCase', 63 => 'RulesTestCase', 64 => 'SchemaRegressionTest', 65 => 'SecurepagesPreventHijackTestCase', 66 => 'SessionApiTestCase', 67 => 'SimpleTestFunctionalTest', 68 => 'SimpleTestMailCaptureTestCase'), 1 => '87', 2 => array ('sandbox' => array (...), 'results' => array (...), 'finished' => 1, 'message' => '')) ) ../batch.inc:190
9 3.6876 28137052 _simpletest_batch_operation( $test_list_init = array (0 => 'CowInstanceTest', 1 => 'LocationCCKTest', 2 => 'LocationEarthTest', 3 => 'LocationGoogleGeocoderTest', 4 => 'LoginSecurityInterfaceTest', 5 => 'LoginSecuritySoftBlockTest', 6 => 'LoginSecurityUserBlockingTest', 7 => 'MollomAccessTestCase', 8 => 'MollomAnalysisTestCase', 9 => 'MollomBlacklistTestCase', 10 => 'MollomCommentFormTestCase', 11 => 'MollomContactFormTestCase', 12 => 'MollomDataTestCase', 13 => 'MollomFallbackTestCase', 14 => 'MollomFormConfigurationTestCase', 15 => 'MollomInstallationTestCase', 16 => 'MollomLanguageDetectionTestCase', 17 => 'MollomProfileFormsTestCase', 18 => 'MollomReportTestCase', 19 => 'MollomResellerTestCase', 20 => 'MollomResponseTestCase', 21 => 'MollomServerListRecoveryTestCase', 22 => 'MollomUserFormsTestCase', 23 => 'NatBasicTest', 24 => 'NatSecondaryTest', 25 => 'NatSettingsTest', 26 => 'OpenSearchTestCase', 27 => 'OpenSearchTokensTestCase', 28 => 'PathautoBookTokenTestCase', 29 => 'PathautoFunctionalTestCase', 30 => 'PathautoLocaleTestCase', 31 => 'PathautoTaxonomyTokenTestCase', 32 => 'PathautoUnitTestCase', 33 => 'PathRedirectFunctionalTest', 34 => 'PathRedirectUnitTest', 35 => 'AUPhoneNumberTestCase', 36 => 'BEPhoneNumberTestCase', 37 => 'BRPhoneNumberTestCase', 38 => 'CAPhoneNumberTestCase', 39 => 'CHPhoneNumberTestCase', 40 => 'CLPhoneNumberTestCase', 41 => 'CNPhoneNumberTestCase', 42 => 'CRPhoneNumberTestCase', 43 => 'CSPhoneNumberTestCase', 44 => 'EGPhoneNumberTestCase', 45 => 'ESPhoneNumberTestCase', 46 => 'HUPhoneNumberTestCase', 47 => 'ILPhoneNumberTestCase', 48 => 'ITPhoneNumberTestCase', 49 => 'JOPhoneNumberTestCase', 50 => 'NLPhoneNumberTestCase', 51 => 'NZPhoneNumberTestCase', 52 => 'PhoneFrenchTest', 53 => 'PhonePanamanianTest', 54 => 'PHPhoneNumberTestCase', 55 => 'PKPhoneNumberTestCase', 56 => 'PLPhoneNumberTestCase', 57 => 'RUPhoneNumberTestCase', 58 => 'SEPhoneNumberTestCase', 59 => 'SGPhoneNumberTestCase', 60 => 'UAPhoneNumberTestCase', 61 => 'UKPhoneNumberTestCase', 62 => 'ZAPhoneNumberTestCase', 63 => 'RulesTestCase', 64 => 'SchemaRegressionTest', 65 => 'SecurepagesPreventHijackTestCase', 66 => 'SessionApiTestCase', 67 => 'SimpleTestFunctionalTest', 68 => 'SimpleTestMailCaptureTestCase'), $test_id = '87', $context = array ('sandbox' => array ('max' => 69, 'tests' => array (...), 'test_results' => array (...)), 'results' => array ('test_id' => '87'), 'finished' => 1, 'message' => '') ) ../batch.inc:0
10 5.6025 40914496 DrupalTestCase->run( ) ../simpletest.module:214
11 18.7536 42771672 LocationEarthTest->testXYZ( ) ../drupal_web_test_case.php:429
12 18.7538 42772364 LocationTestCase->assertArrayEpsilon( $result = array (0 => 5076436.1926, 1 => 3086400.23184, 2 => 2312685.55713), $expected = array (0 => 5076436.1926, 1 => 3086400.23184, 2 => 2312685.55713), $epsilon = 0.01, $message = ???, $group = ??? ) ../earth.test:28
Variables in local scope (#12)
$epsilon =
float 0.01
$expected =
array
  0 => float 5076436.1926

  1 => float 3086400.23184
  2 => float 2312685.55713
$group =
string 'Other' (length=5)
$k =
int 0
$lower =
float 5076436.1826

$message =
string '' (length=0)
$result =
array
  0 => float 5076436.1926

  1 => float 3086400.23184
  2 => float 2312685.55713
$test =
float 5076436.1926
$upper =
float 5076436.2026

 

kenorb’s picture

Status: Active » Needs review
StatusFileSize
new945 bytes

Find the patch in attachment.

underq’s picture

I had this bug and the patch resolved it. thx

jfhovinne’s picture

Rerolling the patch, which resolved the issue for me too.
Should be committed since tests always fail without the fix.

kenorb’s picture

Status: Needs review » Reviewed & tested by the community
podarok’s picture

Status: Reviewed & tested by the community » Postponed

postponed before tests fix
#1931088: [META] Fixing tests

podarok’s picture

Category: bug » task
Priority: Normal » Critical
Status: Postponed » Needs review

restored

podarok’s picture

Assigned: Unassigned » podarok
Status: Needs review » Fixed

http://qa.drupal.org/pifr/test/456533
tests fixed with handling current errors as Debug messages.
ToDo - follow ups #1931088: [META] Fixing tests

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.