- Status changed to Postponed
almost 2 years ago 5:25pm 21 January 2023 - 🇩🇪Germany Grevil
@nevergone we already discussed that the tests are less performant then equally implemented Kernel tests, I just wanted to give you a head start here, as you volunteered implementing these tests. No need for the insulting tone. This is Open-Source, everyone is doing their part.
- 🇩🇪Germany Anybody Porta Westfalica
Let's all keep calm and friendly here :) All good. We'll do it like written in #20 or simply close this cluttered issue and create a new one ;)
- 🇭🇺Hungary nevergone Nyíregyháza, Hungary, Europe
@Grevil
I'm sorry, I didn't mean to be offensive. I don't want you to do unnecessary work, and I don't want unnecessary code in the module.
It is useless to test uninstall the module, because it does nothing. Nothing happens when the module is installed, but if you do want to test it, this line in any test will do it:protected static $modules = [ 'watchdog_mailer', ];
If the module cannot be installed, the tests will not run. It is therefore unnecessary to test just the module installation.
- 🇩🇪Germany Grevil
@nevergone, understandable. I think I just took it the wrong way, no bad blood.
I agree with @Anybody, let's continue with #20, as soon as there is time!
- Issue was unassigned.
- 🇩🇪Germany Anybody Porta Westfalica
Some resources for testing mail:
- 🇩🇪Germany Anybody Porta Westfalica
@LRWebks: Could you please add missing tests to the issue summary you experienced when working on this module?
So this can be improved by anyone going through the list. - Assigned to lrwebks
- Status changed to Active
12 months ago 2:51pm 29 November 2023 - 🇭🇺Hungary nevergone Nyíregyháza, Hungary, Europe
Install/uninstall test is obsolote, see related change record: https://www.drupal.org/node/3388092 →
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - 🇩🇪Germany Anybody Porta Westfalica
@nevergone thank you, very good point! But that means we have to require drupal:^10.2, which is quite early?
Perhaps better keep the existing tests for now and add a TODO do do this later?
- 🇭🇺Hungary nevergone Nyíregyháza, Hungary, Europe
@Anybody:
GenericModuleTestBase support add Drupal core 10.1.5
https://www.drupal.org/project/drupal/releases/10.1.5 → - 🇩🇪Germany Anybody Porta Westfalica
Would also mean we'd have to remove Drupal 9 compatibility.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Issue was unassigned.
- 🇩🇪Germany lrwebks Porta Westfalica
No more ideas why no emails are being sent in the test (or are not shown in result). Please help!
- Assigned to nevergone
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Open on Drupal.org →Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7last update
12 months ago Waiting for branch to pass - Status changed to Needs review
12 months ago 12:45am 3 December 2023 - Status changed to Needs work
12 months ago 7:43am 3 December 2023 - 🇩🇪Germany Anybody Porta Westfalica
Please needs a manual rebase, can't be merged currently.
- 🇩🇪Germany Anybody Porta Westfalica
BTW README.txt has been replaced by README.md - I think that's part of the required rebase. It shouldn't be re-introduced.
- Issue was unassigned.
- Status changed to Fixed
12 months ago 5:31am 4 December 2023 - 🇩🇪Germany Anybody Porta Westfalica
Setting this fixed, as @nevergone already merged this. Still there should be a follow-up to fix the current test issues:
See https://www.drupal.org/node/3027256/qa: →
PHP Fatal error: Uncaught Error: Class "Drupal\Tests\system\Functional\Module\GenericModuleTestBase" not found in /var/www/html/modules/contrib/watchdog_mailer/tests/src/Functional/GenericTest.php:12
-
nevergone →
committed 8670335b on 2.0.x
Issue #3326915: fix basic tests.
-
nevergone →
committed 8670335b on 2.0.x
- Status changed to Needs work
12 months ago 9:04pm 5 December 2023 -
nevergone →
committed 82f0986b on 2.0.x
Issue #3326915 by nevergone, Grevil, LRWebks, Anybody: Add basic test...
-
nevergone →
committed 82f0986b on 2.0.x
- Status changed to Fixed
12 months ago 11:29am 6 December 2023 -
nevergone →
committed 82f0986b on 3332921-add-more-configuration--squash-merge
Issue #3326915 by nevergone, Grevil, LRWebks, Anybody: Add basic test...
-
nevergone →
committed 82f0986b on 3332921-add-more-configuration--squash-merge
- 🇩🇪Germany Anybody Porta Westfalica
@nevergone GREAT WORK! Thank you very much! I'll take a look at the tests soon, very interested how it worked.
Anything left that should be added as tests in a follow-up?
Automatically closed - issue fixed for 2 weeks with no activity.