Skip to content
Snippets Groups Projects
Verified Commit 0a510d5c authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3405364 by quietone, dww, mstrelan, smustgrave: Update docs to stop...

Issue #3405364 by quietone, dww, mstrelan, smustgrave: Update docs to stop recommending FormattableMarkup

(cherry picked from commit 19b213db)
parent b95bc825
No related branches found
No related tags found
17 merge requests!10663Issue #3495778: Update phpdoc in FileSaveHtaccessLoggingTest,!10451Issue #3472458 by watergate, smustgrave: CKEditor 5 show blocks label is not translated,!103032838547 Fix punctuation rules for inline label suffix colon with CSS only,!10150Issue #3467294 by quietone, nod_, smustgrave, catch, longwave: Change string...,!10130Resolve #3480321 "Second level menu",!9936Issue #3483087: Check the module:// prefix in the translation server path and replace it with the actual module path,!9933Issue #3394728 by ankondrat4: Undefined array key "#prefix" and deprecated function: explode() in Drupal\file\Element\ManagedFile::uploadAjaxCallback(),!9914Issue #3451136 by quietone, gapple, ghost of drupal past: Improve...,!9882Draft: Issue #3481777 In bulk_form ensure the triggering element is the bulk_form button,!9839Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9815Issue #3480025: There is no way to remove entity cache items,!9757Issue #3478869 Add "All" or overview links to parent links,!9752Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior,!9749Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior,!9678Issue #3465132 by catch, Spokje, nod_: Show test run time by class in run-tests.sh output,!9578Issue #3304746 by scott_euser, casey, smustgrave: BigPipe cannot handle (GET)...,!9449Issue #3344041: Allow textarea widgets to be used for text (formatted) fields
Pipeline #261680 canceled
......@@ -47,9 +47,10 @@ protected function getMails(array $filter = []) {
* Value of the field to assert.
* @param string $message
* (optional) A message to display with the assertion. Do not translate
* messages: use \Drupal\Component\Render\FormattableMarkup to embed
* variables in the message text, not t(). If left blank, a default message
* will be displayed.
* messages with t(). Use double quotes and embed variables directly in
* message text, or use sprintf() if necessary. Avoid the use of
* \Drupal\Component\Render\FormattableMarkup unless you cast the object to
* a string. If left blank, a default message will be displayed.
*
* @return bool
* TRUE on pass.
......@@ -74,9 +75,10 @@ protected function assertMail($name, $value = '', $message = '') {
* Number of emails to search for string, starting with most recent.
* @param string $message
* (optional) A message to display with the assertion. Do not translate
* messages: use \Drupal\Component\Render\FormattableMarkup to embed
* variables in the message text, not t(). If left blank, a default message
* will be displayed.
* messages with t(). Use double quotes and embed variables directly in
* message text, or use sprintf() if necessary. Avoid the use of
* \Drupal\Component\Render\FormattableMarkup unless you cast the object to
* a string. If left blank, a default message will be displayed.
*/
protected function assertMailString($field_name, $string, $email_depth, $message = '') {
$mails = $this->getMails();
......@@ -109,9 +111,10 @@ protected function assertMailString($field_name, $string, $email_depth, $message
* Pattern to search for.
* @param string $message
* (optional) A message to display with the assertion. Do not translate
* messages: use \Drupal\Component\Render\FormattableMarkup to embed
* variables in the message text, not t(). If left blank, a default message
* will be displayed.
* messages with t(). Use double quotes and embed variables directly in
* message text, or use sprintf() if necessary. Avoid the use of
* \Drupal\Component\Render\FormattableMarkup unless you cast the object to
* a string. If left blank, a default message will be displayed.
*/
protected function assertMailPattern($field_name, $regex, $message = '') {
$mails = $this->getMails();
......
This diff is collapsed.
......@@ -387,9 +387,10 @@ public function linkNotExistsExact($label, $message = '') {
* Link position counting from zero.
* @param string $message
* (optional) A message to display with the assertion. Do not translate
* messages: use \Drupal\Component\Render\FormattableMarkup to embed
* variables in the message text, not t(). If left blank, a default message
* will be displayed.
* messages with t(). Use double quotes and embed variables directly in
* message text, or use sprintf() if necessary. Avoid the use of
* \Drupal\Component\Render\FormattableMarkup unless you cast the object to
* a string. If left blank, a default message will be displayed.
*
* @throws \Behat\Mink\Exception\ExpectationException
* Thrown when element doesn't exist, or the link label is a different one.
......@@ -410,9 +411,10 @@ public function linkByHrefExists($href, $index = 0, $message = '') {
* Link position counting from zero.
* @param string $message
* (optional) A message to display with the assertion. Do not translate
* messages: use \Drupal\Component\Render\FormattableMarkup to embed
* variables in the message text, not t(). If left blank, a default message
* will be displayed.
* messages with t(). Use double quotes and embed variables directly in
* message text, or use sprintf() if necessary. Avoid the use of
* \Drupal\Component\Render\FormattableMarkup unless you cast the object to
* a string. If left blank, a default message will be displayed.
*
* @throws \Behat\Mink\Exception\ExpectationException
* Thrown when element doesn't exist, or the link label is a different one.
......@@ -431,9 +433,10 @@ public function linkByHrefExistsExact(string $href, int $index = 0, string $mess
* The full or partial value of the 'href' attribute of the anchor tag.
* @param string $message
* (optional) A message to display with the assertion. Do not translate
* messages: use \Drupal\Component\Render\FormattableMarkup to embed
* variables in the message text, not t(). If left blank, a default message
* will be displayed.
* messages with t(). Use double quotes and embed variables directly in
* message text, or use sprintf() if necessary. Avoid the use of
* \Drupal\Component\Render\FormattableMarkup unless you cast the object to
* a string. If left blank, a default message will be displayed.
*
* @throws \Behat\Mink\Exception\ExpectationException
* Thrown when element doesn't exist, or the link label is a different one.
......@@ -452,9 +455,10 @@ public function linkByHrefNotExists($href, $message = '') {
* The full value of the 'href' attribute of the anchor tag.
* @param string $message
* (optional) A message to display with the assertion. Do not translate
* messages: use \Drupal\Component\Render\FormattableMarkup to embed
* variables in the message text, not t(). If left blank, a default message
* will be displayed.
* messages with t(). Use double quotes and embed variables directly in
* message text, or use sprintf() if necessary. Avoid the use of
* \Drupal\Component\Render\FormattableMarkup unless you cast the object to
* a string. If left blank, a default message will be displayed.
*
* @throws \Behat\Mink\Exception\ExpectationException
* Thrown when element doesn't exist, or the link label is a different one.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment