Remove new form editor feature flag

[MAILPOET-2549]
This commit is contained in:
Rostislav Wolny
2020-01-21 09:54:46 +01:00
committed by Jack Kitterhing
parent 139b3691bf
commit 447e01b0aa
13 changed files with 31 additions and 108 deletions

View File

@ -2,25 +2,12 @@
namespace MailPoet\Test\Form\Util;
use MailPoet\Features\FeaturesController;
use MailPoet\Form\Util\Styles;
class StylesTest extends \MailPoetUnitTest {
/** @var FeaturesController&\PHPUnit_Framework_MockObject_MockObject */
private $featuresController;
public function _before() {
parent::_before();
$this->featuresController = $this->createMock(FeaturesController::class);
$this->featuresController
->expects($this->any())
->method('isSupported')
->willReturn(false);
}
public function testItSetsDefaultCSSStyles() {
$styles = new Styles($this->featuresController);
$styles = new Styles();
expect($styles->getDefaultStyles())->notEmpty();
}
@ -29,7 +16,7 @@ class StylesTest extends \MailPoetUnitTest {
/* some comment */
input[name=first_name] , input.some_class, .some_class { color: red ; background: blue; } .another_style { fonT-siZe: 20px }
';
$styleProcesser = new Styles($this->featuresController);
$styleProcesser = new Styles();
$extractedAndPrefixedStyles = $styleProcesser->render($stylesheet, $prefix = 'mailpoet');
// 1. comments should be stripped
// 2. each selector should be refixed