@@ 99-108 (lines=10) @@ | ||
96 | $this->assertEquals($expected, $result); |
|
97 | } |
|
98 | ||
99 | public function testCurrentCheckoutMethodGuest() |
|
100 | { |
|
101 | $this->customerSession->method('isLoggedIn')->willReturn(false); |
|
102 | $this->checkoutData->method('isAllowedGuestCheckout')->willReturn(true); |
|
103 | ||
104 | $this->quote->setCheckoutMethod(false); |
|
105 | $result = $this->checkout->getCurrentCheckoutMethod($this->quote); |
|
106 | $expected = Onepage::METHOD_GUEST; |
|
107 | $this->assertEquals($expected, $result); |
|
108 | } |
|
109 | ||
110 | public function testCurrentCheckoutMethodRegister() |
|
111 | { |
|
@@ 110-119 (lines=10) @@ | ||
107 | $this->assertEquals($expected, $result); |
|
108 | } |
|
109 | ||
110 | public function testCurrentCheckoutMethodRegister() |
|
111 | { |
|
112 | $this->customerSession->method('isLoggedIn')->willReturn(false); |
|
113 | $this->checkoutData->method('isAllowedGuestCheckout')->willReturn(false); |
|
114 | ||
115 | $this->quote->setCheckoutMethod(false); |
|
116 | $result = $this->checkout->getCurrentCheckoutMethod($this->quote); |
|
117 | $expected = Onepage::METHOD_REGISTER; |
|
118 | $this->assertEquals($expected, $result); |
|
119 | } |
|
120 | } |
|
121 |