Passed
Push — develop ( 15bc6b...5ea31b )
by Nikolay
05:50 queued 12s
created

BackupTest::testDownload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright (C) MIKO LLC - All Rights Reserved
4
 * Unauthorized copying of this file, via any medium is strictly prohibited
5
 * Proprietary and confidential
6
 * Written by Nikolay Beketov, 7 2020
7
 *
8
 */
9
10
namespace MikoPBX\Tests\Modules\ModuleBackup\Lib;
11
12
use Modules\ModuleBackup\Lib\Backup;
13
use MikoPBX\Tests\Unit\AbstractUnitTest;
14
15
class BackupTest extends AbstractUnitTest
16
{
17
18
    public function testDownload()
19
    {
20
        $backupId = 'backup_1594380302';
21
        $result = Backup::download(['id'=>$backupId]);
22
        $this->assertArrayHasKey('result', $result);
23
        $this->assertEquals('Success', $result['result']);
24
    }
25
}
26