When run Simpletest for Features, the error occur.

CommentFileSizeAuthor
#5 features.test-1101690.patch1.04 KBkenorb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb’s picture

Fatal error: Call to a member function set_display() on a non-object in features/tests/features.test on line 189
Call Stack
# Time Memory Function Location
1 0.0003 61244 {main}( ) ../index.php:0
2 0.4388 33411184 menu_execute_active_handler( $path = ??? ) ../index.php:18
3 0.4457 34074656 call_user_func_array ( 'system_batch_page', array () ) ../menu.inc:348
4 0.4457 34074888 system_batch_page( ) ../menu.inc:0
5 0.4466 34160100 _batch_page( ) ../system.admin.inc:1841
6 0.4472 34179372 _batch_progress_page_nojs( ) ../batch.inc:39
7 1.6432 50195872 _batch_process( array ('sets' => array (0 => array (...)), 'current_set' => 0, 'progressive' => TRUE, 'url' => 'batch', 'source_page' => 'admin/build/testing', 'redirect' => 'admin/build/testing/results/16', 'id' => '35', 'error_message' => 'Please continue to <a href="/batch?id=35&amp;op=finished">the error page</a>', 'running' => TRUE) ) ../batch.inc:147
8 1.6433 50200624 call_user_func_array ( '_simpletest_batch_operation', array (0 => array (0 => 'DateAPITestCase', 1 => 'DateRepeatTestCase', 2 => 'FeaturesUserTestCase', 3 => 'CommonSyndicationParserTestCase', 4 => 'FeedsCSVtoTermsTest', 5 => 'FeedsCSVtoUsersTest', 6 => 'FeedsDateTimeTest', 7 => 'FeedsExamplesFastFeedTestCase', 8 => 'FeedsExamplesFeedTestCase', 9 => 'FeedsExamplesNodeTestCase', 10 => 'FeedsExamplesOPMLTestCase', 11 => 'FeedsExamplesUserTestCase', 12 => 'FeedsMapperContentTaxonomyTestCase', 13 => 'FeedsMapperContentTestCase', 14 => 'FeedsMapperDateTestCase', 15 => 'FeedsMapperEmailTestCase', 16 => 'FeedsMapperEmfieldTestCase', 17 => 'FeedsMapperFileFieldTestCase', 18 => 'FeedsMapperLinkTestCase', 19 => 'FeedsMapperLocaleTestCase', 20 => 'FeedsMapperOGTestCase', 21 => 'FeedsMapperProfileTestCase', 22 => 'FeedsMapperTaxonomyTestCase', 23 => 'FeedsRSStoDataTest', 24 => 'FeedsRSStoNodesTest', 25 => 'FeedsSchedulerTestCase', 26 => 'FeedsSitemapParserTestCase', 27 => 'FeedsSyndicationParserTestCase', 28 => 'FeedsUIUserInterfaceTestCase', 29 => 'ParserCSVTest', 30 => 'FileFieldDisplayTestCase', 31 => 'FileFieldPathTestCase', 32 => 'FileFieldRevisionTestCase', 33 => 'FileFieldValidateTestCase', 34 => 'FileFieldPathsFileFieldTestCase', 35 => 'FileFieldPathsImageFieldTestCase', 36 => 'FileFieldPathsUploadTestCase', 37 => 'FlagTestCase', 38 => 'GoogleAnalyticsBasicTest', 39 => 'ImageFieldDisplayTestCase', 40 => 'ImageFieldValidateTestCase'), 1 => '16', 2 => array ('sandbox' => array (...), 'results' => array (...), 'finished' => 1, 'message' => '')) ) ../batch.inc:190
9 1.6433 50200768 _simpletest_batch_operation( $test_list_init = array (0 => 'DateAPITestCase', 1 => 'DateRepeatTestCase', 2 => 'FeaturesUserTestCase', 3 => 'CommonSyndicationParserTestCase', 4 => 'FeedsCSVtoTermsTest', 5 => 'FeedsCSVtoUsersTest', 6 => 'FeedsDateTimeTest', 7 => 'FeedsExamplesFastFeedTestCase', 8 => 'FeedsExamplesFeedTestCase', 9 => 'FeedsExamplesNodeTestCase', 10 => 'FeedsExamplesOPMLTestCase', 11 => 'FeedsExamplesUserTestCase', 12 => 'FeedsMapperContentTaxonomyTestCase', 13 => 'FeedsMapperContentTestCase', 14 => 'FeedsMapperDateTestCase', 15 => 'FeedsMapperEmailTestCase', 16 => 'FeedsMapperEmfieldTestCase', 17 => 'FeedsMapperFileFieldTestCase', 18 => 'FeedsMapperLinkTestCase', 19 => 'FeedsMapperLocaleTestCase', 20 => 'FeedsMapperOGTestCase', 21 => 'FeedsMapperProfileTestCase', 22 => 'FeedsMapperTaxonomyTestCase', 23 => 'FeedsRSStoDataTest', 24 => 'FeedsRSStoNodesTest', 25 => 'FeedsSchedulerTestCase', 26 => 'FeedsSitemapParserTestCase', 27 => 'FeedsSyndicationParserTestCase', 28 => 'FeedsUIUserInterfaceTestCase', 29 => 'ParserCSVTest', 30 => 'FileFieldDisplayTestCase', 31 => 'FileFieldPathTestCase', 32 => 'FileFieldRevisionTestCase', 33 => 'FileFieldValidateTestCase', 34 => 'FileFieldPathsFileFieldTestCase', 35 => 'FileFieldPathsImageFieldTestCase', 36 => 'FileFieldPathsUploadTestCase', 37 => 'FlagTestCase', 38 => 'GoogleAnalyticsBasicTest', 39 => 'ImageFieldDisplayTestCase', 40 => 'ImageFieldValidateTestCase'), $test_id = '16', $context = array ('sandbox' => array ('max' => 41, 'tests' => array (...), 'test_results' => array (...)), 'results' => array ('test_id' => '16'), 'finished' => 1, 'message' => '') ) ../batch.inc:0
10 2.9091 63648788 DrupalTestCase->run( ) ../simpletest.module:214
11 27.1531 74027632 FeaturesUserTestCase->test( ) ../drupal_web_test_case.php:429
12 29.6111 75805040 FeaturesUserTestCase->_test_views( $op = 'override', class FeaturesUserTestCase { protected $url = 'http://coi/user/3'; protected $curlHandle = resource(22722) of type (curl); protected $headers = array (0 => 'HTTP/1.1 302 Found\r\n', 1 => 'Date: Tue, 22 Mar 2011 16:51:22 GMT\r\n', 2 => 'Server: Apache\r\n', 3 => 'X-Powered-By: PHP/5.2.17\r\n', 4 => 'Last-Modified: Tue, 22 Mar 2011 16:51:22 +0000\r\n', 5 => 'Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0, max-age=1\r\n', 6 => 'ETag: "1300812682"\r\n', 7 => 'Set-Cookie: SESS49f5087e716922083aeaa0ad7212a54d=4a35686b8caee37b704c8fab89888554; expires=Thu, 14-Apr-2011 20:24:42 GMT; path=/; HttpOnly\r\n', 8 => 'Location: http://coi/user/3\r\n', 9 => 'Expires: Tue, 22 Mar 2011 16:51:23 GMT\r\n', 10 => 'Content-Length: 0\r\n', 11 => 'Content-Type: text/html; charset=utf-8\r\n', 12 => '\r\n', 13 => 'HTTP/1.1 200 OK\r\n', 14 => 'Date: Tue, 22 Mar 2011 16:51:22 GMT\r\n', 15 => 'Server: Apache\r\n', 16 => 'X-Powered-By: PHP/5.2.17\r\n', 17 => 'Last-Modified: Tue, 22 Mar 2011 16:51:22 +0000\r\n', 18 => 'Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0, max-age=1\r\n', 19 => 'ETag: "1300812682"\r\n', 20 => 'Expires: Tue, 22 Mar 2011 16:51:23 GMT\r\n', 21 => 'Content-Length: 3827\r\n', 22 => 'Content-Type: text/html; charset=utf-8\r\n', 23 => '\r\n'); protected $content = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">\n <head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />\n <title>s23730MnHka7fF | Pressflow</title>\n <link type="text/css" rel="stylesheet" media="all" href="/modules/node/node.css?g" />\n<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?g" />\n<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?g" />\n<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?g" />\n<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?g" />\n<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/cck/theme/content-...'; protected $plainTextContent = FALSE; protected $elements = class SimpleXMLElement { public $@attributes = array (...); public $head = class SimpleXMLElement { ... }; public $body = class SimpleXMLElement { ... } }; protected $loggedInUser = class stdClass { public $uid = '3'; public $name = 's23730MnHka7fF'; public $pass = '26afd988105fa506317a30cbc09b903e'; public $mail = 's23730MnHka7fF@example.com'; public $mode = '0'; public $sort = '0'; public $threshold = '0'; public $theme = ''; public $signature = ''; public $signature_format = '0'; public $created = '1300812681'; public $access = '1300812681'; public $login = '0'; public $status = '1'; public $timezone = NULL; public $language = ''; public $picture = ''; public $init = ''; public $data = 'a:0:{}'; public $roles = array (...); public $pass_raw = 'Bhq9zXWXSX' }; protected $cookieFile = NULL; protected $additionalCurlOptions = array (); protected $originalUser = class stdClass { public $uid = '1'; public $name = 'Admin'; public $pass = '912ec803b2ce49e4a541068d495ab570'; public $mail = 'system@data.gov.uk'; public $mode = '0'; public $sort = '0'; public $threshold = '0'; public $theme = ''; public $signature = ''; public $signature_format = '0'; public $created = '1251884897'; public $access = '1300812623'; public $login = '1300811089'; public $status = '1'; public $timezone = '0'; public $language = ''; public $picture = ''; public $init = 'alienor@rroom.net'; public $data = 'a:4:{s:7:"contact";i:0;s:13:"form_build_id";s:37:"form-d586909a067a95f4a72211be5f7ea464";s:14:"picture_delete";s:0:"";s:14:"picture_upload";s:0:"";}'; public $timezone_name = 'Europe/London'; public $sid = 'b35302c237a37345433595b63132af4d'; public $hostname = '127.0.0.1'; public $timestamp = '1300812655'; public $cache = 1300812665; public $session = ''; public $contact = 0; public $form_build_id = 'form-d586909a067a95f4a72211be5f7ea464'; public $picture_delete = ''; public $picture_upload = ''; public $roles = array (...) }; protected $httpauth_credentials = NULL; protected $session_name = 'SESS49f5087e716922083aeaa0ad7212a54d'; protected $session_id = '4a35686b8caee37b704c8fab89888554'; protected $testId = '16'; protected $originalPrefix = ''; protected $originalFileDirectory = 'sites/default/files'; protected $timeLimit = 180; public $results = array ('#pass' => 26, '#fail' => 3, '#exception' => 1, '#debug' => 0); protected $assertions = array (0 => array (...), 1 => array (...), 2 => array (...), 3 => array (...), 4 => array (...), 5 => array (...), 6 => array (...), 7 => array (...), 8 => array (...), 9 => array (...), 10 => array (...), 11 => array (...), 12 => array (...), 13 => array (...), 14 => array (...), 15 => array (...), 16 => array (...), 17 => array (...), 18 => array (...), 19 => array (...), 20 => array (...), 21 => array (...), 22 => array (...), 23 => array (...), 24 => array (...), 25 => array (...), 26 => array (...), 27 => array (...), 28 => array (...), 29 => array (...)); protected $skipClasses = array ('DrupalTestCase' => TRUE, 'DrupalWebTestCase' => TRUE); public $originalLanguage = class stdClass { public $language = 'en'; public $name = 'English'; public $native = 'English'; public $direction = 0; public $enabled = 1; public $plurals = 0; public $formula = ''; public $domain = ''; public $prefix = ''; public $weight = 0; public $javascript = ''; public $dir = 'ltr' } } ) ../features.test:75
Variables in local scope (#12)
$op =
string 'override' (length=8)
$view =
null

 

        $view = views_get_view('features_test', TRUE);
        $view->set_display('default');

Tested with Views 3.x.
Similar bug in Views it-self:
#1101332: Call to a member function set_display() on a non-object in tests/views_exposed_form.test on line 34

mpotter’s picture

Status: Active » Closed (won't fix)

Closing this for lack of activity. Please re-open this issue if you can reproduce it in the latest version.

kenorb’s picture

Status: Closed (won't fix) » Active

Tested and the problem still exists.

kenorb’s picture

Priority: Normal » Major

The whole Simpletest environment is broken, because of one test.

kenorb’s picture

Status: Active » Needs review
FileSize
1.04 KB

Workaround patch.

kenorb’s picture

Issue summary: View changes
Priority: Major » Normal
Status: Needs review » Closed (outdated)

Version 6.x is no longer supported due to Drupal 6 End of Life.