public function testAfterInitializeIfAttributesEmpty()
 {
     $this->requestMock->expects($this->once())->method('getParam')->with('attributes')->will($this->returnValue([]));
     $this->productTypeMock->expects($this->never())->method('setUsedProductAttributeIds');
     $this->requestMock->expects($this->never())->method('getPost');
     $this->productTypeMock->expects($this->never())->method('generateSimpleProducts');
     $this->plugin->afterInitialize($this->subjectMock, $this->productMock);
 }
 public function testAfterInitializeForNotConfigurableProduct()
 {
     $this->productMock->expects($this->once())->method('getTypeId')->willReturn('non-configurable');
     $this->productTypeMock->expects($this->never())->method('setUsedProductAttributeIds');
     $this->requestMock->expects($this->never())->method('getPost');
     $this->productTypeMock->expects($this->never())->method('generateSimpleProducts');
     $this->plugin->afterInitialize($this->subjectMock, $this->productMock);
 }
 /**
  * @covers Configurable::afterInitialize
  */
 public function testAfterInitializeForNotConfigurableProduct()
 {
     $this->product->expects(static::once())->method('getTypeId')->willReturn('non-configurable');
     $this->product->expects(static::never())->method('getExtensionAttributes');
     $this->request->expects(static::once())->method('getPost');
     $this->variationHandler->expects(static::never())->method('generateSimpleProducts');
     $this->plugin->afterInitialize($this->subject, $this->product);
 }