DateFieldTestBase::setup() fail setting up user/permission

Created on 24 November 2021, almost 3 years ago
Updated 1 February 2023, almost 2 years ago

Problem/Motivation

Trying to write new tests for the date module but have problem making Date tests pass locally before I make any changes.

Steps to reproduce

* Clean install of D7 dev
* Date commit 3150217b7611ceabe47e0831959c3984f4059d31
* MariaDb
* PHP 7.4.x

php scripts/run-tests.sh --verbose --url http://date.local Date


 Argument 1 passed to DrupalWebTestCase::drupalLogin() must be an instance of stdClass, bool given, called in date/tests/DateFieldTestBase.test on line 41

Date API 113 passes, 2 fails, and 0 exceptions
Date API unit tests 62 passes, 0 fails, and 0 exceptions
Date Field 38 passes, 84 fails, 3 exceptions, and 31 debug messages
Date Form test 2 passes, 0 fails, 0 exceptions, and 1 debug message
Date Now 7 passes, 0 fails, and 0 exceptions
Date Popup 18 passes, 40 fails, 2 exceptions, and 14 debug messages
Date Validation 24 passes, 44 fails, 1 exception, and 12 debug messages
Date Views - Popup Test 16 passes, 15 fails, 0 exceptions, and 9 debug messages
Date Repeat Form 794 passes, 4256 fails, 390 exceptions, and 395 debug messages
Date Repeat 35 passes, 0 fails, and 0 exceptions
Timezone & Granularity 67 passes, 112 fails, 11 exceptions, and 44 debug messages
Date Tools 12 passes, 35 fails, 2 exceptions, and 4 debug messages
Field UI 14 passes, 25 fails, 2 exceptions, and 11 debug messages
Date Validation 15 passes, 24 fails, 1 exception, and 9 debug messages
Date views pager skipping test 23 passes, 17 fails, 0 exceptions, and 8 debug messages

Test run duration: 7 min 38 sec

Detailed test results
---------------------


---- DateAllDayUiTestCase ----


Status    Group      Filename          Line Function
--------------------------------------------------------------------------------
Fail      Completion DateAllDayUiTestC   44 DateAllDayUiTestCase->testAllDayFie
    The test did not complete due to a fatal error.
Fail      Other      DateFieldTestBase   29 DateFieldTestBase->setUp()
    Enabled modules: date_all_day, date_all_day_test_feature, field, field_ui,
    date_api, date, date_tools
Fail      Role       DateFieldTestBase   40 DateFieldTestBase->setUp()
    Invalid permission administer date tools.

Proposed resolution

TBD

Remaining tasks

None

User interface changes

none

API changes

none

Data model changes

none

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡΄Norway steinmb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024