Failing tests on main branch

Created on 5 June 2024, 6 months ago
Updated 4 July 2024, 5 months ago

Problem/Motivation

The tests for the 2.x branch are failing.

Steps to reproduce

Check latest test run for 2.x on Gitlab (e.g. https://git.drupalcode.org/project/recurring_events/-/jobs/1314996)

There were 3 errors:
1) Drupal\Tests\recurring_events\Unit\Plugin\migrate\destination\EntityEventSeriesTest::testImportSourceDateField
Prophecy\Exception\Call\UnexpectedCallException: Unexpected method call on Double\ContentEntityInterface\P3:
  - setSyncing(
        true
    )
expected calls were:
  - isValidationRequired(
    )
  - validate(
    )
  - save(
    )
  - id(
    )
  - enforceIsNew(
    )
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php:203
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php:160
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php:224
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Prophet.php:137
/builds/project/recurring_events/vendor/phpspec/prophecy-phpunit/src/ProphecyTrait.php:70
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/Command.php:146
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/Command.php:99
/builds/project/recurring_events/vendor/bin/phpunit:122
2) Drupal\Tests\recurring_events\Unit\Plugin\migrate\destination\EntityEventSeriesTest::testImportRecurringDateField
Prophecy\Exception\Call\UnexpectedCallException: Unexpected method call on Double\ContentEntityInterface\P3:
  - setSyncing(
        true
    )
expected calls were:
  - isValidationRequired(
    )
  - validate(
    )
  - save(
    )
  - id(
    )
  - enforceIsNew(
    )
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php:203
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php:160
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php:224
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Prophet.php:137
/builds/project/recurring_events/vendor/phpspec/prophecy-phpunit/src/ProphecyTrait.php:70
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/Command.php:146
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/Command.php:99
/builds/project/recurring_events/vendor/bin/phpunit:122
3) Drupal\Tests\recurring_events\Unit\Plugin\migrate\destination\EntityEventSeriesTest::testImportNoSourceDateField
Prophecy\Exception\Call\UnexpectedCallException: Unexpected method call on Double\ContentEntityInterface\P3:
  - setSyncing(
        true
    )
expected calls were:
  - isValidationRequired(
    )
  - validate(
    )
  - save(
    )
  - id(
    )
  - enforceIsNew(
    )
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php:203
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php:160
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php:224
/builds/project/recurring_events/vendor/phpspec/prophecy/src/Prophecy/Prophet.php:137
/builds/project/recurring_events/vendor/phpspec/prophecy-phpunit/src/ProphecyTrait.php:70
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/project/recurring_events/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/Command.php:146
/builds/project/recurring_events/vendor/phpunit/phpunit/src/TextUI/Command.php:99
/builds/project/recurring_events/vendor/bin/phpunit:122
ERRORS!
Tests: 16, Assertions: 205, Errors: 3.
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Recurring Events (Main module)

Created by

πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024