36/36 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------
Line src/Form/ShareMessageForm.php
------ ----------------------------------------------------------------------
457 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
460 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Form/SharrreSettingsForm.php
------ ----------------------------------------------------------------------
126 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
130 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------------------------------
Line src/SharePluginInterface.php
------ --------------------------------------------------------------------------------------------------------------------------------------
13 Interface Drupal\sharemessage\SharePluginInterface extends deprecated interface Drupal\Component\Plugin\ConfigurablePluginInterface:
Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated
in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement
ConfigurableInterface and/or DependentPluginInterface directly as needed. If
you implement ConfigurableInterface you may choose to implement
ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility,
however this must be removed prior to Drupal 9.
------ --------------------------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------------
Line src/Tests/ShareMessageExtraFieldTest.php
------ -------------------------------------------------------------------------------------
77 Call to deprecated function entity_get_display():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
If the display is available in configuration use:
78 Call to deprecated function entity_get_display():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
If the display is available in configuration use:
248 Call to deprecated method getVocabularyId() of class Drupal\taxonomy\TermInterface:
Scheduled for removal before Drupal 9.0.0. Use
TermInterface::bundle() instead.
------ -------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------
Line src/Tests/ShareMessageTestBase.php
------ ----------------------------------------------------------------------------------
278 Call to deprecated method format() of class Drupal\Component\Utility\SafeMarkup:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
278 Call to method format() of deprecated class Drupal\Component\Utility\SafeMarkup:
Will be removed before Drupal 9.0.0. Use the appropriate
306 Call to deprecated method format() of class Drupal\Component\Utility\SafeMarkup:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
306 Call to method format() of deprecated class Drupal\Component\Utility\SafeMarkup:
Will be removed before Drupal 9.0.0. Use the appropriate
------ ----------------------------------------------------------------------------------
[ERROR] Found 12 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 3096177-12-10-interdiff.txt | 1.55 KB | mbovan |
| #12 | 3096177-12.patch | 42.21 KB | mbovan |
| #10 | 3096177-10-6-interdiff.txt | 20.99 KB | mbovan |
| #10 | 3096177-10.patch | 42.55 KB | mbovan |
| #6 | 3096177-6-2-interdiff.txt | 29.9 KB | mbovan |
Comments
Comment #2
sahana _n commentedA patch is created for Drupal 9 compatibility. please review.
36/36 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] No errors
Comment #3
sahana _n commentedComment #4
kristen polPer a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.
Comment #5
berdirThis needs to use $this->messenger() instead
the default argument isn't needed anymore and this means we require ^8.8 || ^9, .info.yml needs to be updated.
The test needs to be converted to a phpunit functional test.
We can also drop this custom assert method and just use $this->assertSession()->checkboxChecked(); and NotChecked() instead.
Comment #6
mbovan commentedSummary:
Drupal\Tests\sharemessage\Functional\ShareMessageExtraFieldTest. This one needs more work onsetEntityRawContent()https://www.drupal.org/docs/8/testing/converting-d7-and-d8-simpletests-t... recommends:
I think that can be a follow-up or all test conversion can be moved into a separate issue...
Comment #8
berdirthe assert text doesn't work anymore here? if the form elements below work then I'd expect the description to show up too?
Comment #9
mbovan commenteddrupalPostAjaxForm->drupalPostFormdoes not work here.The easiest way was to save the plugin, revisit the chosen plugin edit page and assert descriptions.
$override_settings = '//details[starts-with(@data-drupal-selector, "edit-settings")]';can actually be removed since it always asserts the markup of the first/default plugin or it can be moved to the "Edit" page mentioned above.
Comment #10
mbovan commentedImproved plugin tests as per #10 and fixed
Drupal\Tests\sharemessage\Functional\ShareMessageExtraFieldTest.Comment #11
berdirI'm still struggling to understand all these changes. I locally reverted most of them and just did this, and it passes for me?
Comment #12
mbovan commentedAs far as I can see, this part:
only passes because
addthisis a default plugin and gets preselected when you're onadmin/config/services/sharemessage/add. That means,$this->drupalPostForm(NULL, ['plugin' => 'addthis'], 'plugin')doesn't really do anything and that can be confirmed in other similar tests that are testing non-default plugins (ShareMessageOGHeadersTest, ShareMessageSharrreTest, ShareMessageSocialSharePrivacyTest).Still, I think it makes sense to keep the old behavior (without
$this->drupalPostForm(NULL, ['plugin' => 'addthis'], 'plugin')line) so we can also test thataddthisis indeed a default plugin.Comment #13
segovia94 commentedThe patch from #12 applied cleanly, local tests passed, and it appears to be working well on a fresh D9 install.
Comment #15
berdirFinally committed, thanks.