Move select block integration test to unit test

[MAILPOET-2665]
This commit is contained in:
Rostislav Wolny
2020-01-30 12:28:22 +01:00
committed by Jack Kitterhing
parent c1180cd0aa
commit f0c1c3e424
2 changed files with 26 additions and 9 deletions

View File

@@ -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>';