Closed (fixed)
Project:
Media Entity Link
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 May 2021 at 14:25 UTC
Updated:
11 Jul 2025 at 08:49 UTC
Jump to comment: Most recent
Create PHPUnit browser test coverage for media type creation.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dishabhadra commentedComment #3
dishabhadra commentedComment #4
dishabhadra commentedComment #5
d.fisher commentedComment #6
d.fisher commentedComment #8
d.fisher commentedNot getting anywhere with this one. Tests are not my strong point so setting to Needs Work! Anyone who has a deeper knowledge, feel free to duck in!
Comment #10
d.fisher commentedLooking good. There is a phpcs error still though.
85 | WARNING | Unused variable $media. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
135 | WARNING | Unused variable $media. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable)
Comment #12
danrodLooks like not even the composer tests are passing, I'll look into that, sorry for the inconvenience !
Comment #13
daniel.j commentedAppologies, I meant to follow up with a comment after pushing changes but got cought up with something else.
The tests added are for the form, I hope to follow up with some tests for the media plugin itself. I'll be happy to clean up the tests already pushed as well for cs and stan issues.
Comment #14
daniel.j commentedCI all green. Please see https://www.drupal.org/project/drupal/issues/3532187 with regards to the composer issue.
Comment #15
daniel.j commentedChanges added include Unit and Kernal tests for 'MediaEntityLink.php', also fixes for composer, phpcs, phpstan.
Please review the tests.
Comment #16
d.fisher commentedLooking good. Tests pass. Pipelines pass. This is awesome. Great work! @danrod are you happy for me to commit this?
Comment #17
danrodHi @d.fisher I'm ok with this, please do commit !
Great work !
Comment #18
danrod@daniel.j , thanks a lot of the information. I was having the same issue with some projects and I'll apply that solution.
Comment #20
d.fisher commentedComment #21
d.fisher commentedThank you everyone for all your efforts. Great to finally get this one merged, released, and marked as fixed!!