Closed (outdated)
Project:
CAPTCHA
Version:
6.x-2.4
Component:
Tests
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2011 at 14:57 UTC
Updated:
17 Jan 2018 at 01:27 UTC
Jump to comment: Most recent
$ php run-tests.sh --all --verbose
Fatal error: Call to undefined method CaptchaAdminTestCase::assertUrl() in /Volumes/Users HD/kenorb/Sites/coi/public_html/sites/all/modules/captcha/captcha.test on line 502
Call Stack:
0.0032 473500 1. {main}() /Volumes/Users HD/kenorb/Sites/coi/public_html/scripts/run-tests.sh:0
0.0069 804788 2. simpletest_script_execute_batch() /Volumes/Users HD/kenorb/Sites/coi/public_html/scripts/run-tests.sh:29
0.6433 44163168 3. simpletest_script_run_one_test($test_id = '7880123', $test_class = 'CaptchaAdminTestCase') /Volumes/Users HD/kenorb/Sites/coi/public_html/scripts/run-tests.sh:331
2.1302 58124444 4. DrupalTestCase->run() /Volumes/Users HD/kenorb/Sites/coi/public_html/scripts/run-tests.sh:383
38.7874 60263772 5. CaptchaAdminTestCase->testCaptchAdminLinks() /Volumes/Users HD/kenorb/Sites/coi/public_html/modules/simpletest/drupal_web_test_case.php:429
Variables in local scope (#5):
$add_comment_url = 'http://coi/comment/reply/1'
$edit = array ('captcha_type' => 'captcha/Math')
$node = class stdClass { public $type = 'page'; public $comment = 2; public $body = 's586418VXREJnGQvYqSGI2z1jfKmB4J2U7r4mti'; public $title = 's586418oJW8YwJj'; public $changed = 1304693716; public $format = 0; public $moderate = 0; public $promote = 0; public $revision = 1; public $log = ''; public $status = 1; public $sticky = 0; public $revisions = NULL; public $taxonomy = NULL; public $uid = '4'; public $is_new = TRUE; public $teaser = ''; public $created = 1304693716; public $timestamp = 1304693716; public $vid = '1'; public $language = ''; public $tnid = 0; public $translate = 0; public $nid = '1' }
array(4) {
["type"]=>
int(1)
["message"]=>
string(58) "Call to undefined method CaptchaAdminTestCase::assertUrl()"
["file"]=>
string(85) "/Volumes/Users HD/kenorb/Sites/coi/public_html/sites/all/modules/captcha/captcha.test"
["line"]=>
int(502)
}
Comments
Comment #1
soxofaan commentedWhich version of simpletest are you using? In the 6.x-2.x branch of simpletest, the assertUrl method is defined.
Comment #2
qasimzee commentedSame error
Comment #3
Yaron Tal commentedGetting the same error here with version 6.x-2.11 of simpletest and 6.x-2.4 of the captcha module.
Comment #4
soxofaan commentedApparently assertUrl was added in the simpletest module on Nov 13, 2010 (#970496: Backport new assertions and changes to XPath handling, http://drupalcode.org/project/simpletest.git/commit/9eb49bf5817364b72083...)
6.x-2.11 of simpletest is still from Oct 8, 2010
Comment #5
wundo commented