Completed
Push — master ( 169c8d...db937b )
by Tim
14:15
created

VoucherTest::codeCanBeSet()   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
dl 0
loc 6
c 1
b 0
f 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * QuestionTest
4
 */
5
6
namespace FRUIT\Shopize\Tests\Unit\Domain\Model;
7
8
use FRUIT\Shopize\Domain\Model\Voucher;
9
10
11
/**
12
 * QuestionTest
13
 */
14
class VoucherTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
15
{
16
17
    /**
18
     * @var Voucher
19
     */
20
    protected $fileDomainModelInstance;
21
22
    /**
23
     * Setup
24
     *
25
     * @return void
26
     */
27
    protected function setUp()
28
    {
29
        $this->fileDomainModelInstance = new Voucher();
30
    }
31
32
    /**
33
     * @test
34
     */
35
    public function codeCanBeSet()
36
    {
37
        $code = 'a6g87fg0na98sdf';
38
        $this->fileDomainModelInstance->setCode($code);
39
        $this->assertEquals($code, $this->fileDomainModelInstance->getCode());
40
    }
41
}
42