Skip to content

Commit 919a6aa

Browse files
committed
AC-11004: Exception on Storefront when Admin adds CustomerCustomAttribute block via CMS Page Content
1 parent 352ee06 commit 919a6aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Cms/Test/Unit/Validator/DirectiveValidatorTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
class DirectiveValidatorTest extends TestCase
1414
{
15+
/**
16+
* @var DirectiveValidator
17+
*/
1518
private DirectiveValidator $validator;
1619

1720
protected function setUp(): void
@@ -21,7 +24,8 @@ protected function setUp(): void
2124

2225
public function testAllowsCleanBlockDirective(): void
2326
{
24-
$html = '{{block class="Magento\\Customer\\Block\\Form\\Register" name="home.form.customattributes" template="Magento_Customer::form/register.phtml"}}';
27+
$html = '{{block class="Magento\\Customer\\Block\\Form\\Register"
28+
name="home.form.customattributes" template="Magento_Customer::form/register.phtml"}}';
2529
$this->assertTrue($this->validator->isValid($html));
2630
}
2731

0 commit comments

Comments
 (0)