Issue #3221966 by guilhermevp, anweshasinha, Berdir: PathAliasTestTrait::assertPathAliasExists message argument default value is incompatible with assertTrue()

merge-requests/755/head
catch 2021-07-12 12:22:27 +01:00
parent 0e9bec38ca
commit 7a1c99623a
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ trait PathAliasTestTrait {
* @param string|null $message
* (optional) A message to display with the assertion.
*/
protected function assertPathAliasExists($alias, $langcode = NULL, $path = NULL, $message = NULL) {
protected function assertPathAliasExists($alias, $langcode = NULL, $path = NULL, $message = '') {
$query = \Drupal::entityTypeManager()
->getStorage('path_alias')
->getQuery()
@ -98,7 +98,7 @@ trait PathAliasTestTrait {
* @param string|null $message
* (optional) A message to display with the assertion.
*/
protected function assertPathAliasNotExists($alias, $langcode = NULL, $path = NULL, $message = NULL) {
protected function assertPathAliasNotExists($alias, $langcode = NULL, $path = NULL, $message = '') {
$query = \Drupal::entityTypeManager()
->getStorage('path_alias')
->getQuery()