You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((string) $field === 'expiration' && !empty($contentExpected)) {
$contentExpected
= \date(
'Y-m-d',
\strtotime(
$contentExpected,
$this->getServerShareTimeFromLastResponse()
)
) . " 00:00:00";
}
strtotime is passed ANY_VALUE which when fails returns FALSE. That, when passed to date()
returns the Unix epoch (i.e. 1st January 1970), and the content to assert is no longer ANY_VALUE.
This when passed to doesFieldValueMatchExpectedContent() then returns false even though the field is still there.
The following step does not work if we try to check for
ANY_VALUE
:Analysis:
This is due to how
strtotime()
works. This needs to be handled somewhere here:core/tests/acceptance/features/bootstrap/Sharing.php
Lines 662 to 671 in f37a6dc
strtotime is passed
ANY_VALUE
which when fails returnsFALSE
. That, when passed todate()
returns the Unix epoch (i.e. 1st January 1970), and the content to assert is no longer
ANY_VALUE
.This when passed to
doesFieldValueMatchExpectedContent()
then returns false even though the field is still there.core/tests/acceptance/features/bootstrap/Sharing.php
Lines 629 to 645 in f37a6dc
The text was updated successfully, but these errors were encountered: