Code Duplication    Length = 11-11 lines in 2 locations

tests/unit/Product/ProductTest.php 1 location

@@ 351-361 (lines=11) @@
348
        }
349
    }
350
351
    function testGetVariation()
352
    {
353
        $product = $this->createNewProductWithVariations();
354
        $group = new Intraface_modules_product_Attribute_Group;
355
        $group->name = 'Test1';
356
        $group->save();
357
        $group->load();
358
        $product->setAttributeGroup($group->getId());
359
360
        $this->assertTrue(is_object($product->getVariation()));
361
    }
362
363
    function testGetVariations()
364
    {

tests/unit/Product/ProductDoctrineTest.php 1 location

@@ 379-389 (lines=11) @@
376
        }
377
    }
378
379
    function testSetAttributeGroup()
380
    {
381
        $product = $this->createNewProductWithVariations();
382
        
383
        $group = new Intraface_modules_product_Attribute_Group;
384
        $group->name = 'Test1';
385
        $group->save();
386
        $group->load();
387
        
388
        $this->assertTrue($product->setAttributeGroup($group));
389
    }
390
    
391
    function testGetAttributeGroups()
392
    {