Move select block integration test to unit test
[MAILPOET-2665]
This commit is contained in:
committed by
Jack Kitterhing
parent
c1180cd0aa
commit
f0c1c3e424
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace MailPoet\Form\Block;
|
||||
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
class Select extends Base {
|
||||
|
||||
public function render($block) {
|
||||
@@ -55,7 +53,7 @@ class Select extends Base {
|
||||
}
|
||||
|
||||
$html .= '<option value="' . $value . '"' . $isSelected . $isDisabled . '>';
|
||||
$html .= WPFunctions::get()->escAttr($label);
|
||||
$html .= $this->wp->escAttr($label);
|
||||
$html .= '</option>';
|
||||
}
|
||||
$html .= '</select>';
|
||||
|
Reference in New Issue
Block a user