Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Checkbox fields should return the value of the value attribute when c…
Browse files Browse the repository at this point in the history
…hecked
  • Loading branch information
Cameron Zemek committed Jul 30, 2014
1 parent a305d46 commit e0103a2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Behat/Mink/Driver/BrowserKitDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,7 @@ public function getValue($xpath)
return $this->getAttribute($xpath, 'value');
}

$value = $field->getValue();

if ($field instanceof ChoiceFormField && 'checkbox' === $field->getType()) {
$value = null !== $value;
}

return $value;
return $field->getValue();
}

/**
Expand Down

0 comments on commit e0103a2

Please sign in to comment.