Code Duplication    Length = 10-10 lines in 2 locations

controller/frontend/tests/Controller/Frontend/Basket/StandardTest.php 2 locations

@@ 874-883 (lines=10) @@
871
	}
872
873
874
	public function testSetServicePayment()
875
	{
876
		$service = $this->getService( 'unitpaymentcode' );
877
878
		$this->object->setService( 'payment', $service->getId(), array() );
879
		$this->assertEquals( 'unitpaymentcode', $this->object->get()->getService( 'payment' )->getCode() );
880
881
		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Basket\\Exception' );
882
		$this->object->setService( 'payment', $service->getId(), array( 'prepay' => true ) );
883
	}
884
885
886
	public function testSetDeliveryOption()
@@ 886-895 (lines=10) @@
883
	}
884
885
886
	public function testSetDeliveryOption()
887
	{
888
		$service = $this->getService( 'unitcode' );
889
890
		$this->object->setService( 'delivery', $service->getId(), array() );
891
		$this->assertEquals( 'unitcode', $this->object->get()->getService( 'delivery' )->getCode() );
892
893
		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Basket\\Exception' );
894
		$this->object->setService( 'delivery', $service->getId(), array( 'fast shipping' => true, 'air shipping' => false ) );
895
	}
896
897
898
	public function testCheckLocale()