Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
tests
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2011 at 12:21 UTC
Updated:
22 Sep 2015 at 09:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kenorb commentedobject(stdClass)[183] public 'uid' => string '3' (length=1) public 'name' => string 's479346WPYPaK18' (length=15) public 'pass' => string 'd7ba0b1b184f1c605f998774fbebbc28' (length=32) public 'mail' => string 's479346WPYPaK18@example.com' (length=27) public 'mode' => string '0' (length=1) public 'sort' => string '0' (length=1) public 'threshold' => string '0' (length=1) public 'theme' => string '' (length=0) public 'signature' => string '' (length=0) public 'signature_format' => string '0' (length=1) public 'created' => string '1300796294' (length=10) public 'access' => string '1300796294' (length=10) public 'login' => string '0' (length=1) public 'status' => string '1' (length=1) public 'timezone' => null public 'language' => string '' (length=0) public 'picture' => string '' (length=0) public 'init' => string '' (length=0) public 'data' => string 'a:0:{}' (length=6) public 'roles' => array 2 => string 'authenticated user' (length=18) 3 => string 's4793469jUMW76I' (length=15) public 'pass_raw' => string 'VVXu66DoYh' (length=10)Comment #2
kenorb commentedSimilar bug in Features:
#1101690: Simpletest: Fatal error: Call to a member function set_display() on a non-object in tests/features.test on line 189
Comment #3
dawehnerSo do you volunteer to fix it? If yes please assign the issue to yourself :)
Comment #4
kenorb commentedI'll try as my best, if I'll find spare time. I'm just struggling with other simpletests as well. Basically 1/3 of contrib tests provided by other modules which I've installed are very buggy.
Basically this error of non-object, means that this views doesn't exists.
On the first look, I saw that this view was defined and the path should be correct.
So probably this needs some debugging work to check why it doesn't work.
Comment #5
dawehnerThe test worked one day that's sure.
Comment #6
kenorb commentedreturns
None of them which are defined in tests/views_test.views_default.inc which is not being loaded at all (views_test module is loaded).
Comment #7
kenorb commentedComment #8
kenorb commentedI'm not sure if patch is done correctly, but it works.
Additional patch #1107912: $reset in views_include_default_views() is not passed to views_get_module_apis() is required.
Basically when following code is executed:
Before views_test module is enabled, views_get_module_apis() is executed (during menu_rebuild) which doesn't include views_api of views_test and all module APIs are cached ($cache). So no new View files are included after that.
Could be related to same issues with Simpletest:
#440836: Error when installation uses module_exists()
#440824: Reset module_list() and module_implements() on test setup.
#360925: Need to reset module_list()
But I don't know which one exactly.
Comment #9
kenorb commentedComment #10
dawehnerAre there other tests with this bug?
Comment #11
kenorb commentedI couldn't find any apart of this, probably:
#472684: Install non-default modules one at a time to ensure proper module list is maintained during installation hooks
See comment: http://drupal.org/node/472684#comment-1631738
Comment #12
dawehnerCommited to 6.x-3.x
Comment #14
munyivaUsing the view name as printed on using #6 really sorted my issue.