Created on 13 September 2023, about 1 year ago

Problem/Motivation

Drupal CI reports a couple of broken tests, that should be fixed.


Drupal\Tests\media_fotoweb\Unit\RenditionImageFetcherTest
exception: [Other] Line 0 of sites/default/files/simpletest/phpunit-3.xml:
PHPUnit Test failed to complete; Error: PHPUnit 9.5.28 by Sebastian Bergmann and contributors.

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing Drupal\Tests\media_fotoweb\Unit\RenditionImageFetcherTest
E                                                                   1 / 1 (100%)R

Time: 00:00.038, Memory: 6.00 MB

There was 1 error:

1) Drupal\Tests\media_fotoweb\Unit\RenditionImageFetcherTest::testGetImageByResourceUrl
ArgumentCountError: Too few arguments to function Drupal\media_fotoweb\FotowebClient::__construct(), 1 passed in /var/www/html/modules/contrib/media_fotoweb/tests/src/Unit/RenditionImageFetcherTest.php on line 91 and exactly 4 expected

/var/www/html/modules/contrib/media_fotoweb/src/FotowebClient.php:75
/var/www/html/modules/contrib/media_fotoweb/tests/src/Unit/RenditionImageFetcherTest.php:91
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:675
/var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:653
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97

--

There was 1 risky test:

1) Drupal\Tests\media_fotoweb\Unit\RenditionImageFetcherTest::testGetImageByResourceUrl
This test did not perform any assertions

/var/www/html/core/tests/Drupal/Tests/Listeners/DrupalListener.php:127
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:452
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:979
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:675
/var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:653
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97

ERRORS!
Tests: 1, Assertions: 0, Errors: 1, Risky: 1.
āœ—	
Unknown
fail: [run-tests.sh check] Line 0 of :
FATAL Drupal\Tests\media_fotoweb\Unit\RenditionImageFetcherTest: test runner returned a non-zero error code (2).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

šŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

šŸ‡©šŸ‡ŖGermany szeidler Berlin

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

Comments & Activities

Production build 0.71.5 2024