예제 #1
0
 public function testGetEmailWhenBillingAddressNotExist()
 {
     $quoteMock = $this->getMock('Magento\\Quote\\Model\\Quote', [], [], '', false);
     $quoteMock->expects($this->once())->method('getBillingAddress')->willReturn(null);
     $this->model->setQuote($quoteMock);
     $this->assertEquals('', $this->model->getEmail());
 }
예제 #2
0
 public function testCanEditShippingMethod()
 {
     $this->model->setData('can_edit_shipping_method', true);
     static::assertTrue($this->model->canEditShippingMethod());
     $this->model->setData('can_edit_shipping_method', false);
     static::assertTrue($this->model->canEditShippingMethod());
 }
예제 #3
0
파일: Review.php 프로젝트: aiesh/magento2
 /**
  * Retrieve payment method and assign additional template values
  *
  * @return \Magento\Paypal\Block\Express\Review
  */
 protected function _beforeToHtml()
 {
     return parent::_beforeToHtml();
 }