Commit 9193ea0c authored by catch's avatar catch
Browse files

Issue #3221966 by guilhermevp, anweshasinha, Berdir:...

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

(cherry picked from commit 7a1c9962)
parent a23557a0
...@@ -69,7 +69,7 @@ protected function loadPathAliasByConditions($conditions) { ...@@ -69,7 +69,7 @@ protected function loadPathAliasByConditions($conditions) {
* @param string|null $message * @param string|null $message
* (optional) A message to display with the assertion. * (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() $query = \Drupal::entityTypeManager()
->getStorage('path_alias') ->getStorage('path_alias')
->getQuery() ->getQuery()
...@@ -98,7 +98,7 @@ protected function assertPathAliasExists($alias, $langcode = NULL, $path = NULL, ...@@ -98,7 +98,7 @@ protected function assertPathAliasExists($alias, $langcode = NULL, $path = NULL,
* @param string|null $message * @param string|null $message
* (optional) A message to display with the assertion. * (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() $query = \Drupal::entityTypeManager()
->getStorage('path_alias') ->getStorage('path_alias')
->getQuery() ->getQuery()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment