File tree Expand file tree Collapse file tree 2 files changed +36
-41
lines changed
app/code/Magento/Reports/Test/Unit/Model/ResourceModel/Report/Review/Customer
dev/tests/integration/testsuite/Magento/Reports/Model/ResourceModel/Review/Customer Expand file tree Collapse file tree 2 files changed +36
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento \Reports \Model \ResourceModel \Review \Product ;
7
+
8
+ /**
9
+ * @magentoAppArea adminhtml
10
+ */
11
+ class CollectionTest extends \PHPUnit \Framework \TestCase
12
+ {
13
+ /**
14
+ * @var \Magento\Reports\Model\ResourceModel\Review\Customer\Collection
15
+ */
16
+ private $ collection ;
17
+
18
+ protected function setUp ()
19
+ {
20
+ $ this ->collection = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
21
+ \Magento \Reports \Model \ResourceModel \Review \Customer \Collection::class
22
+ );
23
+ }
24
+
25
+ /**
26
+ * This tests covers issue described in:
27
+ * https://github.com/magento/magento2/issues/10301
28
+ *
29
+ * @magentoDataFixture Magento/Review/_files/customer_review.php
30
+ */
31
+ public function testSelectCountSql ()
32
+ {
33
+ $ this ->collection ->addFieldToFilter ('customer_name ' , ['like ' => '%john% ' ]);
34
+ $ this ->assertEquals (1 , $ this ->collection ->getSize ());
35
+ }
36
+ }
You can’t perform that action at this time.
0 commit comments