Code Duplication    Length = 12-12 lines in 2 locations

tests/ZohoDaoTest.php 2 locations

@@ 205-216 (lines=12) @@
202
     * @throws  Exceptions\ZohoCRMORMException
203
     * @throws  \ZCRMException
204
     */
205
    public function testGetRecordById(array $beans)
206
    {
207
        $fullQualifyName = 'Wabel\\Zoho\\CRM\\DaoGeneratedTest\\AccountZohoDao';
208
        /**
209
         * @var $accountZohoDao AbstractZohoDao
210
         */
211
        $accountZohoDao =  new $fullQualifyName($this->zohoClient);
212
        $beanRecord = $accountZohoDao->getById($beans[1]->getZohoId());
213
        $this->assertNotSame($beans[1], $beanRecord);
214
        $this->assertEquals($beans[1]->getZohoId(), $beanRecord->getZohoId());
215
        return $beans;
216
    }
217
218
    /**
219
     * @depends testGetRecordById
@@ 224-235 (lines=12) @@
221
     * @return  ZohoBeanInterface
222
     * @throws  Exceptions\ZohoCRMORMException
223
     */
224
    public function testDeleteById(array $beans)
225
    {
226
        $fullQualifyName = 'Wabel\\Zoho\\CRM\\DaoGeneratedTest\\AccountZohoDao';
227
        /**
228
         * @var $accountZohoDao AbstractZohoDao
229
         */
230
        $accountZohoDao =  new $fullQualifyName($this->zohoClient);
231
        $beanDeleted = $accountZohoDao->delete($beans[2]->getZohoId());
232
        $this->assertNotEmpty($beanDeleted);
233
        $this->assertEquals($beans[2]->getZohoId(), $beanDeleted[0]->getZohoId());
234
        return $beans[2];
235
    }
236
237
    /**
238
     * @depends testDeleteById