Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current tests for Media contain some outdated code and could use a few improvements to coding standards.
I'd like to expand the Media test coverage and I think a minor cleanup would be a good starting point.
Comment | File | Size | Author |
---|---|---|---|
#5 | cleanup-tests-1733960-5.patch | 6.84 KB | Devin Carlson |
#3 | cleanup-tests-1733960-3.patch | 6.48 KB | Devin Carlson |
#1 | cleanup-tests-1733960-1.patch | 6.46 KB | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedA patch to cleanup the existing tests.
Notes:
variable_set('simpletest_verbose', TRUE);
which should always be true by default.$type->view_mode_defaults
which is not used by media types.'dependencies' => array('file_entity'),
.function testViewModesAssigned()
.Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedUpdated patch which enables file entity in
parent::setUp()
.Comment #5
Devin Carlson CreditAttribution: Devin Carlson commentedIt looks like there are more problems at hand.
I don't think that the testbot is currently picking up any valid tests (see the latest Media 7.x-2.x HEAD http://qa.drupal.org/pifr/test/158824).
Comment #7
Dave ReidFiled issue with test bots: #1734648: Media 2.x branch missing dependencies
Comment #8
ParisLiakos CreditAttribution: ParisLiakos commented#5: cleanup-tests-1733960-5.patch queued for re-testing.
Comment #10
Devin Carlson CreditAttribution: Devin Carlson commented#1: cleanup-tests-1733960-1.patch queued for re-testing.
Comment #11
Devin Carlson CreditAttribution: Devin Carlson commentedThe patch in #1 should now pass tests and is the one to review.
Comment #12
ParisLiakos CreditAttribution: ParisLiakos commentedThanks Devin, couldnt find anything wrong:)
commited
Took it a while, i hope you still want to expand tests cheers!