diff options
Diffstat (limited to 'frontends/php/tests/include/web/elements/CSegmentedRadioElement.php')
-rw-r--r-- | frontends/php/tests/include/web/elements/CSegmentedRadioElement.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php b/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php index 585c8e2f7c0..876080c4051 100644 --- a/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php +++ b/frontends/php/tests/include/web/elements/CSegmentedRadioElement.php @@ -59,6 +59,13 @@ class CSegmentedRadioElement extends CElement { } /** + * @inheritdoc + */ + public function isEnabled($enabled = true) { + return (($this->getLabels()->filter(CElementQuery::ATTRIBUTES_NOT_PRESENT, ['disabled'])->count() > 0) === $enabled); + } + + /** * Alias for select. * @see self::select * |