Closed (fixed)
Project:
Mail System
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Mar 2019 at 17:47 UTC
Updated:
3 Dec 2019 at 19:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
manuel garcia commentedComment #3
manuel garcia commentedRerrolled since #3030449: Replace deprecated drupal_set_message function for AdminForm got in.
Comment #4
manuel garcia commentedRerolled since #3029285: Use short array syntax got in.
Comment #5
thallesLooks good!
Comment #6
thallesComment #7
manuel garcia commentedComment #8
manuel garcia commentedLet's add the drupalci file and see if we've got any others.
Comment #9
alonaoneill commentedComment #10
jeroentStill a deprecation notice:
Comment #11
berdirAlso, fine to add a second patch with .gitlabci.yml, but please also provide a patch without it, I don't want to commit that.
Comment #12
berdirAnd last, we could update the .info.yml based on https://www.drupal.org/node/3070687 to require ^8.7.7 || ^9.0, might wait a bit until I commit it but then we'll be fully prepared for D9.
Comment #13
sahana _n commentedupdated the .info.yml, please review
Comment #14
berdirThat last patch isn't related to this issue.
Comment #15
sahana _n commentedupdated info.yml file, please review
Comment #16
berdirThanks, this also needs to be combined with the previous changes from this issue because it's not actually true yet.
Comment #17
andreyjan commentedCombined patches #8 and #4. Also fixed deprecated `\Drupal::service('theme_handler')->install(['mailsystem_test_theme']);`
Comment #18
berdirThanks. The last bit there is that new test fail because this test has an empty test method and doesn't actually assert anything.
I'm not quite sure what to do with it. It's basically just a start of a test right now. I think there's nothing there that isn't also covered by the other tests. So maybe just delete that file?
Also, since this module is quite small and only has very few tests, maybe we can just include the conversion of the WebTestBase based tests to Functional phpunit tests? You already have to touch them a bit. So move them to tests/src/Functional, update the base class & namespace.
Comment #19
andreyjan commentedHi @Berdir. I don't really understand why to move unit test to functional. Why not just deleting empty testGetInstances_Default function which makes test fail?
Comment #20
berdirThat's not what I meant, I'm talking about two different things.
> Why not just deleting empty testGetInstances_Default function which makes test fail?
That the only test method, removing it would make it fail too. That's why I said: "I think there's nothing there that isn't also covered by the other tests. So maybe just delete that file?"
> Hi @Berdir. I don't really understand why to move unit test to functional.
What I said isn't to move unit tests to functional, but the old simpletest tests in src/Tests.
Comment #21
andreyjan commentedSorry for misunderstanding.
> So maybe just delete that file?
Removed this file.
> What I said isn't to move unit tests to functional, but the old simpletest tests in src/Tests.
There aren't any simple test files in /src in 8.x-4.x.
Comment #22
berdirAh, I was on an old version, I see how that added to the confusion :)
Comment #24
berdirThanks. I've done some more cleanup in the info.yml, updated the info.yml of the test module as well, added the $defaultTheme property to the test (8.8 only but doesn't hurt in 8.7) and also added drupal/core to composer.json as drupal.org doesn't do that automatically yet. That should mean this module is 100% ready for D9.