Skip to content

Commit 5b568ab

Browse files
committed
Review: fixing the properties' naming
1 parent 7220e13 commit 5b568ab

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

app/code/Magento/Review/Test/Unit/Observer/ProcessProductAfterDeleteEventObserverTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,24 @@ class ProcessProductAfterDeleteEventObserverTest extends TestCase
3131
/**
3232
* @var Review|PHPUnit_Framework_MockObject_MockObject
3333
*/
34-
private $_resourceReviewMock;
34+
private $resourceReviewMock;
3535

3636
/**
3737
* @var Rating|PHPUnit_Framework_MockObject_MockObject
3838
*/
39-
private $_resourceRatingMock;
39+
private $resourceRatingMock;
4040

4141
/**
4242
* Set up
4343
*/
4444
protected function setUp()
4545
{
46-
$this->_resourceReviewMock = $this->createMock(Review::class);
47-
$this->_resourceRatingMock = $this->createMock(Rating::class);
46+
$this->resourceReviewMock = $this->createMock(Review::class);
47+
$this->resourceRatingMock = $this->createMock(Rating::class);
4848

4949
$this->observer = new ProcessProductAfterDeleteEventObserver(
50-
$this->_resourceReviewMock,
51-
$this->_resourceRatingMock
50+
$this->resourceReviewMock,
51+
$this->resourceRatingMock
5252
);
5353
}
5454

@@ -80,10 +80,10 @@ public function testCleanupProductReviewsWithProduct()
8080
$observerMock->expects($this->once())
8181
->method('getEvent')
8282
->willReturn($eventMock);
83-
$this->_resourceReviewMock->expects($this->once())
83+
$this->resourceReviewMock->expects($this->once())
8484
->method('deleteReviewsByProductId')
8585
->willReturnSelf();
86-
$this->_resourceRatingMock->expects($this->once())
86+
$this->resourceRatingMock->expects($this->once())
8787
->method('deleteAggregatedRatingsByProductId')
8888
->willReturnSelf();
8989

@@ -109,10 +109,10 @@ public function testCleanupProductReviewsWithoutProduct()
109109
$observerMock->expects($this->once())
110110
->method('getEvent')
111111
->willReturn($eventMock);
112-
$this->_resourceReviewMock->expects($this->never())
112+
$this->resourceReviewMock->expects($this->never())
113113
->method('deleteReviewsByProductId')
114114
->willReturnSelf();
115-
$this->_resourceRatingMock->expects($this->never())
115+
$this->resourceRatingMock->expects($this->never())
116116
->method('deleteAggregatedRatingsByProductId')
117117
->willReturnSelf();
118118

0 commit comments

Comments
 (0)