Example #1
0
    public function testAfterDeleteScheduled()
    {
        $this->indexerMock->expects($this->once())->method('isScheduled')->will($this->returnValue(true));
        $this->indexerMock->expects($this->never())->method('reindexRow');
        $this->prepareIndexer();

        $this->productMock->expects($this->once())->method('getId')->will($this->returnValue(1));

        $this->assertEquals(
            $this->subjectMock,
            $this->model->aroundDelete($this->subjectMock, $this->proceed, $this->productMock)
        );
    }
 public function testAfterDeleteScheduled()
 {
     $this->assertEquals($this->subjectMock, $this->model->aroundDelete($this->subjectMock, $this->proceed, $this->productMock));
 }