File tree Expand file tree Collapse file tree 3 files changed +10
-44
lines changed
dev/tests/integration/testsuite/Magento/Review Expand file tree Collapse file tree 3 files changed +10
-44
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ protected function setUp()
20
20
}
21
21
22
22
/**
23
- * @magentoDataFixture Magento/Review/_files/customer_rating .php
23
+ * @magentoDataFixture Magento/Review/_files/customer_review_with_rating .php
24
24
*/
25
25
public function testAddEntitySummaryToItem ()
26
26
{
@@ -32,6 +32,9 @@ public function testAddEntitySummaryToItem()
32
32
$ this ->assertEquals ($ this ->collection , $ result );
33
33
}
34
34
35
+ /**
36
+ * @magentoDbIsolation enabled
37
+ */
35
38
public function testAddEntitySummaryToItemEmpty ()
36
39
{
37
40
foreach ($ this ->collection ->getItems () as $ item ) {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 37
37
$ review
38
38
);
39
39
40
+ /** @var \Magento\Review\Model\Resource\Review\Collection $ratingCollection */
40
41
$ ratingCollection = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
41
42
'\Magento\Review\Model\Rating '
42
43
)->getCollection ()
58
59
$ rating ->setReviewId ($ review ->getId ())
59
60
->addOptionVote ($ ratingOption ->getId (), $ product ->getId ());
60
61
}
62
+
63
+ \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->get ('Magento\Framework\Registry ' )->register (
64
+ 'rating_data ' ,
65
+ $ ratingCollection ->getFirstItem ()
66
+ );
You can’t perform that action at this time.
0 commit comments