Code Duplication    Length = 16-16 lines in 2 locations

tests/unit/Accounting/AccountTest.php 2 locations

@@ 59-74 (lines=16) @@
56
        $this->assertEquals('Account', get_class($account));
57
    }
58
59
    function testSaveReturnsAnIntegerLargerThanZero()
60
    {
61
        $account = $this->createAccount();
62
        $account_number = rand(1, 1000000);
63
        $data = array(
64
            'number' => $account_number,
65
            'name' => 'test',
66
            'type_key' => 1,
67
            'use_key' => 1,
68
            'vat_key' => 1,
69
            'vat_percent' => 25
70
        );
71
        $id = $account->save($data);
72
73
        $this->assertTrue(($id > 0));
74
    }
75
76
    function testSavePrimoSaldo()
77
    {
@@ 162-177 (lines=16) @@
159
    }
160
161
162
    function testAnyAccountsReturnsAnIntegerGreaterThanZeroWhenOneAccountIsSaved()
163
    {
164
        $account = $this->createAccount();
165
        $account_number = rand(1, 1000000);
166
        $data = array(
167
            'number' => $account_number,
168
            'name' => 'test',
169
            'type_key' => 1,
170
            'use_key' => 1,
171
            'vat_key' => 1,
172
            'vat_percent' => 25
173
        );
174
        $this->assertTrue($account->save($data) > 0);
175
176
        $this->assertTrue($account->anyAccounts() > 0);
177
    }
178
179
    function testVatPercentIsTransferredWhenSavingAnAccountFromTheValuesOfAnotherAccount()
180
    {