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

BackupConfTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 10
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testModuleRestAPICallback() 0 7 1
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\BackupConf;
13
use MikoPBX\Tests\Unit\AbstractUnitTest;
14
15
class BackupConfTest extends AbstractUnitTest
16
{
17
18
    public function testModuleRestAPICallback()
19
    {
20
        $request = [];
21
        $request['action']='list';
22
        $module = new BackupConf();
23
        $result = $module->moduleRestAPICallback($request);
24
        $this->assertArrayHasKey('result', $result);
25
    }
26
}
27