MethodsTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 13 1
1
<?php
2
3
namespace Meanbee\MagentoRoyalmail\Test\Unit\Model\Config\Source;
4
5
use Meanbee\MagentoRoyalmail\Model\Config\Source\Methods;
6
use Meanbee\MagentoRoyalmail\Test\Unit\Model\Config\SourceTestAbstract;
7
8
/**
9
 * Class MethodsTest
10
 */
11
class MethodsTest extends SourceTestAbstract
12
{
13
14
    /**
15
     * @inheritdoc
16
     */
17
    protected function setUp()
18
    {
19
        $carrier = $this->getMockBuilder('Meanbee\MagentoRoyalmail\Model\Carrier')
20
            ->disableOriginalConstructor()
21
            ->setMethods(['getMethods'])
22
            ->getMock();
23
24
        $carrier->expects($this->once())
25
            ->method('getMethods')
26
            ->willReturn(['internationalstandardletter' => __("International Standard Letter")]);
27
28
        $this->source = new Methods($carrier);
29
    }
30
}
31