/**
  * Show item update result from updateAction
  * in Wishlist and Cart controllers.
  *
  * @return \Magento\Framework\View\Result\Layout
  */
 public function executeInternal()
 {
     $layout = false;
     if ($this->_session->hasCompositeProductResult() && $this->_session->getCompositeProductResult() instanceof \Magento\Framework\DataObject) {
         $layout = $this->productCompositeHelper->renderUpdateResult($this->_session->getCompositeProductResult());
     }
     $this->_session->unsCompositeProductResult();
     return $layout;
 }
 public function testRenderConfigureResultNotOK()
 {
     $configureResult = new \Magento\Framework\Object();
     $configureResult->setError(true)->setMessage('Test Message');
     $this->helper->renderConfigureResult($configureResult);
     $customerId = $this->registry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
     $this->assertNull($customerId);
     $errorMessage = $this->registry->registry('composite_configure_result_error_message');
     $this->assertEquals('Test Message', $errorMessage);
 }