mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Corrected variable name in givenTheCurrentTimeIs to address error
This commit is contained in:
parent
04696ef5a1
commit
0174123d89
@ -448,9 +448,9 @@ class SilverStripeContext extends MinkContext implements SilverStripeAwareContex
|
||||
*/
|
||||
public function givenTheCurrentTimeIs($time)
|
||||
{
|
||||
$newDatetime = \DateTime::createFromFormat('H:i:s', $date);
|
||||
$newDatetime = \DateTime::createFromFormat('H:i:s', $time);
|
||||
if (!$newDatetime) {
|
||||
throw new InvalidArgumentException(sprintf('Invalid date format: %s (requires "H:i:s")', $date));
|
||||
throw new InvalidArgumentException(sprintf('Invalid date format: %s (requires "H:i:s")', $time));
|
||||
}
|
||||
|
||||
$state = $this->testSessionEnvironment->getState();
|
||||
|
Loading…
Reference in New Issue
Block a user