Skip to content

Commit 65426ce

Browse files
committed
MC-2379: CMS content containing widget directives is not updated when the linked widget directive entities are updated
- Added assertion for new behavior
1 parent 73fb7e8 commit 65426ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dev/tests/integration/phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<!-- Semicolon-separated 'glob' patterns, that match global XML configuration files -->
5252
<const name="TESTS_GLOBAL_CONFIG_DIR" value="../../../app/etc"/>
5353
<!-- Whether to cleanup the application before running tests or not -->
54-
<const name="TESTS_CLEANUP" value="enabled"/>
54+
<const name="TESTS_CLEANUP" value="false"/>
5555
<!-- Memory usage and estimated leaks thresholds -->
5656
<!--<const name="TESTS_MEM_USAGE_LIMIT" value="1024M"/>-->
5757
<const name="TESTS_MEM_LEAK_LIMIT" value=""/>

dev/tests/integration/testsuite/Magento/Cms/Block/Widget/BlockTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ public function testToHtml()
3131
$this->assertContains('<a href="http://example.com/', $result);
3232
$this->assertContains('<p>Config value: "http://example.com/".</p>', $result);
3333
$this->assertContains('<p>Custom variable: "HTML Value".</p>', $result);
34+
$this->assertSame($cmsBlock->getIdentities(), $block->getIdentities());
3435
}
3536
}

0 commit comments

Comments
 (0)