Refactor renderers to use template JSON

This commit is contained in:
Mike Jolley
2024-04-23 19:58:56 +01:00
parent 73ba5923ef
commit c321eb282e
9 changed files with 172 additions and 72 deletions

View File

@ -41,7 +41,7 @@ class BlocksRegistryTest extends \MailPoetTest {
remove_filter('mailpoet_block_renderer_test', $callback);
}
public function testItRemovesAllBlockRendererFilters() {
public function testItRemovesAllBlockRenderers() {
$renderer = new Text();
verify(has_filter('render_block_test'))->false();
verify(has_filter('render_block_test2'))->false();
@ -53,7 +53,7 @@ class BlocksRegistryTest extends \MailPoetTest {
verify($this->registry->getBlockRenderer('test'))->notNull();
verify($this->registry->getBlockRenderer('test2'))->notNull();
$this->registry->removeAllBlockRendererFilters();
$this->registry->removeAllBlockRenderers();
verify(has_filter('render_block_test'))->false();
verify(has_filter('render_block_test2'))->false();
verify($this->registry->getBlockRenderer('test'))->null();