Code Duplication    Length = 17-18 lines in 2 locations

tests/BulkLoader_ResultTest.php 2 locations

@@ 38-55 (lines=18) @@
35
        $this->assertCount(1, $results->getCreated());
36
    }
37
38
    public function testGetUpdated()
39
    {
40
        $results = BulkLoader_Result::create();
41
42
        Player::create(
43
            [
44
                'FirstName' => 'Vincent',
45
                'Status' => 'Available'
46
            ]
47
        )->write();
48
49
        $player = Player::get()->find('FirstName', 'Vincent');
50
        $player->Status = 'Unavailable';
51
        $player->write();
52
        $results->addUpdated($player, 'Injured');
53
54
        $this->assertCount(1, $results->getUpdated());
55
    }
56
57
    public function testGetDeleted()
58
    {
@@ 57-73 (lines=17) @@
54
        $this->assertCount(1, $results->getUpdated());
55
    }
56
57
    public function testGetDeleted()
58
    {
59
        $results = BulkLoader_Result::create();
60
61
        Player::create(
62
            [
63
                'FirstName' => 'Vincent',
64
                'Status' => 'Available'
65
            ]
66
        )->write();
67
68
        $player = Player::get()->find('FirstName', 'Vincent');
69
        $results->addDeleted($player, 'Retired');
70
        $player->delete();
71
72
        $this->assertCount(1, $results->getDeleted());
73
    }
74
75
    public function testGetErrors()
76
    {