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

Commit

Permalink
Merge pull request minkphp#85 from grom358/587-getvalue
Browse files Browse the repository at this point in the history
Checkbox fields should return the value when checked
  • Loading branch information
stof committed Aug 13, 2014
2 parents a305d46 + e0103a2 commit 37380f5
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 37380f5

Please sign in to comment.