Closed (fixed)
Project:
YAML Content
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Feb 2020 at 22:03 UTC
Updated:
27 Apr 2020 at 18:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
damienmckennaComment #3
damienmckennaWorking on this.
Comment #4
damienmckennaHere's what drupal-check currently shows:
Comment #5
pavnish commentedComment #6
pavnish commentedPatch Added
Comment #7
pavnish commentedComment #8
damienmckennaFYI I've enabled D9 tests for this module, which will make it easier to confirm it all works.
Comment #9
robpowell@pavnish, I think what you loaded was for the wrong module. Here is an attempt at getting yaml_content d9 ready. This includes changes to automated tests for new dependency injection.
Comment #10
damienmckennaMaybe it was for the 8.x-2.x branch?
Comment #11
damienmckennaI split off the core_version_requirement line into a separate issue so that we can commit it first: #3125818: Update yaml_content.info.yml to be compatible with D9
Comment #12
damienmckennaRerolled after committing the info file change.
Comment #13
damienmckennaThe rerolled patch works with D8.8, let's see if it passes with D9.
Comment #14
damienmckennaFixes the two theme variables, let's see if the third item is fixed too.
Comment #16
damienmckennaSo with the other changes ContentLoaderTest::testMissingContentFile() no longer throws an exception, instead it gives an error.
Comment #17
damienmckennaCommenting out that test for now, I figured we could add it back in again separately.
Comment #19
damienmckennaI think the reason the test failed was that the assertTaxonomy() method should have had an EntityInterface as its first argument, let's see if the tests pass now.
Comment #20
damienmckennaThis should fix the EntityReferenceTestTrait problem.
Comment #21
damienmckennaTrying to fix additional deprecated test methods, per https://www.drupal.org/node/3056869.
Comment #23
damienmckennaLet's see if this resolves the exceptional problem.
Comment #24
damienmckennaThe D8.8 tests pass, let's try the D9.0 tests.
Comment #25
damienmckennaOk, replacing @expectedException with $this->expectException().
Comment #26
damienmckennaD8.8 still passes, hopefully this will be enough for D9.0.
Comment #28
damienmckennaAnd the tests pass for D9! Woot! Committed.
Comment #29
damienmckennaI reran drupal-check and it found the following:
Back to needing more work.
Comment #30
damienmckennaThis covers everything except for the FileTest.php, and I'm not sure why that one isn't being recognized when ReferenceTest.php is.
Comment #32
damienmckennaCommitted.
I think the warning about FileTest is incorrect, given that it shows in the test results:
All done.
Comment #33
damienmckennaComment #34
damienmckennaIt turned out there are *two* FileTest.php files, I missed the other one and TR pointed out the problem - the namespace was wrong. I moved this into a separate issue as it's a generic problem that isn't strictly D9 related: #3127248