Esempio n. 1
0
 /**
  * afterUpdateMview with disabled PageCache module
  */
 public function testAfterUpdateMviewPageCacheDisabled()
 {
     $this->moduleManager->expects($this->once())->method('isEnabled')->with($this->equalTo('Magento_PageCache'))->will($this->returnValue(false));
     $this->eventManagerMock->expects($this->never())->method('dispatch');
     $actualResult = $this->plugin->afterUpdateMview($this->subjectMock);
     $this->assertNull($actualResult);
 }
Esempio n. 2
0
 /**
  * Test afterUpdateMview
  *
  * @return void
  */
 public function testAfterUpdateMview()
 {
     $this->eventManagerMock->expects($this->once())->method('dispatch')->with($this->equalTo('clean_cache_after_reindex'), $this->equalTo(['object' => $this->contextMock]));
     $this->plugin->afterUpdateMview($this->subjectMock);
 }