ProductTest.php 835 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Review\Controller;
  7. class ProductTest extends \Magento\TestFramework\TestCase\AbstractController
  8. {
  9. /**
  10. * @magentoDataFixture Magento/Catalog/_files/products.php
  11. */
  12. public function testListActionDesign()
  13. {
  14. $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
  15. $product = $objectManager->get(\Magento\Catalog\Api\ProductRepositoryInterface::class)
  16. ->get('custom-design-simple-product');
  17. $this->getRequest()->setParam('id', $product->getId());
  18. $this->dispatch('review/product/listAction');
  19. $result = $this->getResponse()->getBody();
  20. $this->assertNotContains("/frontend/Magento/luma/en_US/", $result);
  21. }
  22. }