Code Duplication    Length = 16-16 lines in 2 locations

src/Starkerxp/CampaignBundle/Tests/Manager/CampaignManagerTest.php 1 location

@@ 39-54 (lines=16) @@
36
     * @group campaign
37
     * @group manager
38
     */
39
    public function testInsertNewCampaign()
40
    {
41
        $this->loadFixtureFiles(
42
            [
43
                '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
44
45
                '@StarkerxpCampaignBundle/Tests/DataFixtures/CampaignManager/DefaultCampaign.yml',
46
            ]
47
        );
48
        $campaign = new \Starkerxp\CampaignBundle\Entity\Campaign();
49
        $campaign->setName('Ma super campaign');
50
        $campaign->setDeleted(false);
51
        $campaign->setStatus(Campaign::DRAFT);
52
        $this->manager->insert($campaign);
53
        $this->assertCount(2, $this->manager->findAll());
54
    }
55
56
    /**
57
     * @group campaign

src/Starkerxp/LeadBundle/Tests/Manager/LeadManagerTest.php 1 location

@@ 41-56 (lines=16) @@
38
     * @group lead
39
     * @group manager
40
     */
41
    public function testInsertNewLead()
42
    {
43
        $this->loadFixtureFiles(
44
            [
45
                '@StarkerxpUserBundle/Tests/DataFixtures/UserManager/DefaultUser.yml',
46
47
                '@StarkerxpLeadBundle/Tests/DataFixtures/LeadManager/DefaultLead.yml',
48
            ]
49
        );
50
        $lead = new Lead();
51
        $lead->setOrigin("validatemy.com");
52
        $lead->setProduct("form");
53
        $lead->setDateEvent(new \DateTime("2016-05-06 00:56:45"));
54
        $this->manager->insert($lead);
55
        $this->assertCount(2, $this->manager->findAll());
56
    }
57
58
    /**
59
     * @group lead