Skip to content

Commit 9c2632a

Browse files
author
Dale Sikkema
committed
MAGETWO-43787: cache:clean command doesn't clear Varnish cache
- add verification of event being dispatched
1 parent 8d3b0c0 commit 9c2632a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Backend/Test/Unit/Console/Command/AbstractCacheManageCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function setUp()
2121
$this->eventManagerMock = $this->getMockBuilder('\Magento\Framework\Event\ManagerInterface')
2222
->disableOriginalConstructor()
2323
->getMock();
24-
$this->eventManagerMock->expects($this->any())->method('dispatch');
24+
$this->eventManagerMock->expects($this->any())->method('dispatch')->with($this->cacheEventName);
2525
parent::setUp();
2626
}
2727

0 commit comments

Comments
 (0)