Create PHPUnit browser test coverage for media type creation.

Command icon Show commands

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

dishabhadra created an issue. See original summary.

dishabhadra’s picture

Assigned: Unassigned » dishabhadra
dishabhadra’s picture

Status: Active » Postponed
dishabhadra’s picture

Assigned: dishabhadra » Unassigned
d.fisher’s picture

Version: 1.0.0 » 2.0.x-dev
Category: Plan » Task
Status: Postponed » Active
d.fisher’s picture

d.fisher’s picture

Status: Active » Needs work

Not 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!

daniel.j made their first commit to this issue’s fork.

d.fisher’s picture

Looking 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)

danrod made their first commit to this issue’s fork.

danrod’s picture

Looks like not even the composer tests are passing, I'll look into that, sorry for the inconvenience !

daniel.j’s picture

Appologies, 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.

daniel.j’s picture

daniel.j’s picture

Status: Needs work » Needs review

Changes added include Unit and Kernal tests for 'MediaEntityLink.php', also fixes for composer, phpcs, phpstan.

Please review the tests.

d.fisher’s picture

Status: Needs review » Reviewed & tested by the community

Looking good. Tests pass. Pipelines pass. This is awesome. Great work! @danrod are you happy for me to commit this?

danrod’s picture

Hi @d.fisher I'm ok with this, please do commit !
Great work !

danrod’s picture

@daniel.j , thanks a lot of the information. I was having the same issue with some projects and I'll apply that solution.

  • d.fisher committed b5fe8ebe on 2.0.x
    Issue #3212822 by d.fisher, daniel.j, danrod, dishabhadra: Media type...
d.fisher’s picture

d.fisher’s picture

Status: Reviewed & tested by the community » Fixed

Thank you everyone for all your efforts. Great to finally get this one merged, released, and marked as fixed!!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.