@@ -31,24 +31,24 @@ class ProcessProductAfterDeleteEventObserverTest extends TestCase
31
31
/**
32
32
* @var Review|PHPUnit_Framework_MockObject_MockObject
33
33
*/
34
- private $ _resourceReviewMock ;
34
+ private $ resourceReviewMock ;
35
35
36
36
/**
37
37
* @var Rating|PHPUnit_Framework_MockObject_MockObject
38
38
*/
39
- private $ _resourceRatingMock ;
39
+ private $ resourceRatingMock ;
40
40
41
41
/**
42
42
* Set up
43
43
*/
44
44
protected function setUp ()
45
45
{
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);
48
48
49
49
$ this ->observer = new ProcessProductAfterDeleteEventObserver (
50
- $ this ->_resourceReviewMock ,
51
- $ this ->_resourceRatingMock
50
+ $ this ->resourceReviewMock ,
51
+ $ this ->resourceRatingMock
52
52
);
53
53
}
54
54
@@ -80,10 +80,10 @@ public function testCleanupProductReviewsWithProduct()
80
80
$ observerMock ->expects ($ this ->once ())
81
81
->method ('getEvent ' )
82
82
->willReturn ($ eventMock );
83
- $ this ->_resourceReviewMock ->expects ($ this ->once ())
83
+ $ this ->resourceReviewMock ->expects ($ this ->once ())
84
84
->method ('deleteReviewsByProductId ' )
85
85
->willReturnSelf ();
86
- $ this ->_resourceRatingMock ->expects ($ this ->once ())
86
+ $ this ->resourceRatingMock ->expects ($ this ->once ())
87
87
->method ('deleteAggregatedRatingsByProductId ' )
88
88
->willReturnSelf ();
89
89
@@ -109,10 +109,10 @@ public function testCleanupProductReviewsWithoutProduct()
109
109
$ observerMock ->expects ($ this ->once ())
110
110
->method ('getEvent ' )
111
111
->willReturn ($ eventMock );
112
- $ this ->_resourceReviewMock ->expects ($ this ->never ())
112
+ $ this ->resourceReviewMock ->expects ($ this ->never ())
113
113
->method ('deleteReviewsByProductId ' )
114
114
->willReturnSelf ();
115
- $ this ->_resourceRatingMock ->expects ($ this ->never ())
115
+ $ this ->resourceRatingMock ->expects ($ this ->never ())
116
116
->method ('deleteAggregatedRatingsByProductId ' )
117
117
->willReturnSelf ();
118
118
0 commit comments