Code Duplication    Length = 15-16 lines in 2 locations

lib/custom/tests/MShop/Customer/Manager/LaravelTest.php 2 locations

@@ 136-151 (lines=16) @@
133
	}
134
135
136
	public function testGetSaveAddressItems()
137
	{
138
		$item = $this->object->findItem( 'UTC001', ['customer/address'] );
139
140
		$item->setId( null )->setCode( 'xyz' );
141
		$item->getPaymentAddress()->setEmail( '[email protected]' );
142
		$item->addAddressItem( new \Aimeos\MShop\Common\Item\Address\Standard( 'customer.address.' ) );
143
		$this->object->saveItem( $item );
144
145
		$item2 = $this->object->findItem( 'xyz', ['customer/address'] );
146
147
		$this->object->deleteItem( $item->getId() );
148
149
		$this->assertEquals( 2, count( $item->getAddressItems() ) );
150
		$this->assertEquals( 2, count( $item2->getAddressItems() ) );
151
	}
152
153
154
	public function testGetSavePropertyItems()
@@ 154-168 (lines=15) @@
151
	}
152
153
154
	public function testGetSavePropertyItems()
155
	{
156
		$item = $this->object->findItem( 'UTC001', ['customer/property'] );
157
158
		$item->setId( null )->setCode( 'xyz' );
159
		$item->getPaymentAddress()->setEmail( '[email protected]' );
160
		$this->object->saveItem( $item );
161
162
		$item2 = $this->object->findItem( 'xyz', ['customer/property'] );
163
164
		$this->object->deleteItem( $item->getId() );
165
166
		$this->assertEquals( 1, count( $item->getPropertyItems() ) );
167
		$this->assertEquals( 1, count( $item2->getPropertyItems() ) );
168
	}
169
170
171
	public function testCreateSearch()