예제 #1
0
 /**
  * @param array $addresses
  * @param bool $expected
  * @dataProvider dataProviderForTestIsMultipleShippingAddresses
  */
 public function testIsMultipleShippingAddresses($addresses, $expected)
 {
     $this->quoteAddressCollectionMock->expects($this->any())->method('setQuoteFilter')->will($this->returnValue($this->quoteAddressCollectionMock));
     $this->quoteAddressCollectionMock->expects($this->once())->method('getIterator')->will($this->returnValue(new \ArrayIterator($addresses)));
     $this->assertEquals($expected, $this->quote->isMultipleShippingAddresses());
 }