Passed
Push — develop ( ad73c6...9ec94f )
by Nikolay
06:15 queued 12s
created

PbxExtensionSetupBaseTest::testInstallFiles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 5
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, 6 2020
7
 *
8
 */
9
10
namespace MikoPBX\Tests\Modules\Setup;
11
12
use MikoPBX\Modules\Setup\PbxExtensionSetupBase;
13
use PHPUnit\Framework\TestCase;
14
15
class PbxExtensionSetupBaseTest extends TestCase
16
{
17
18
19
    public function testCreateSettingsTableByModelsAnnotations():void
20
    {
21
        $sut = $this->getMockForAbstractClass(PbxExtensionSetupBase::class,['ModuleBitrix24Integration']);
22
        $result = $sut->createSettingsTableByModelsAnnotations();
23
24
        self::assertTrue($result);
25
    }
26
27
    public function testInstallFiles():void
28
    {
29
        $sut = $this->getMockForAbstractClass(PbxExtensionSetupBase::class,['ModuleBitrix24Integration']);
30
        $result = $sut->installFiles();
31
        self::assertTrue($result);
32
    }
33
34
35
}
36