8 \
Magento\Backend\
App\Area\FrontNameResolver::AREA_CODE
11 require
__DIR__ .
'/../../../Magento/Customer/_files/customer.php';
12 require
__DIR__ .
'/../../../Magento/Catalog/_files/product_simple.php';
15 \
Magento\Store\Model\StoreManagerInterface::class
16 )->getStore()->getId();
19 \
Magento\Review\Model\Review::class,
22 'title' =>
'Review Summary',
23 'detail' =>
'Review text',
24 'nickname' =>
'Nickname',
29 ->setEntityId(
$review->getEntityIdByCode(\
Magento\Review\Model\Review::ENTITY_PRODUCT_CODE))
30 ->setEntityPkValue(
$product->getId())
31 ->setStatusId(\
Magento\Review\Model\Review::STATUS_APPROVED)
43 \
Magento\Review\Model\Rating::class
54 ->create(\
Magento\Review\Model\Rating\Option::class)
58 ->addRatingFilter(
$rating->getId())
61 ->addOptionVote($ratingOption->getId(),
$product->getId());
defined('TESTS_BP')||define('TESTS_BP' __DIR__
static getObjectManager()