Completed
Push — master ( 9b9083...4534a2 )
by Johannes
02:11
created

BlogEntryTest::testGetId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Lichtenwallner  (https://lichtenwallner.at)
4
 *
5
 * @see https://github.com/jolicht/markdown-cms for the canonical source repository
6
 * @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
7
 * @copyright Copyright (c) Johannes Lichtenwallner
8
 */
9
declare(strict_types = 1);
10
namespace JolichtTest\MarkdownCms;
11
12
use PHPUnit\Framework\TestCase;
13
use Jolicht\MarkdownCms\BlogEntry;
14
15
class BlogEntryTest extends TestCase
16
{
17
    private $blogEntry;
18
19
    protected function setUp()
20
    {
21
        $this->blogEntry = new BlogEntry('testId', 'testTitle');
22
    }
23
24
    public function testGetId()
25
    {
26
        $this->assertSame('testId', $this->blogEntry->getId());
27
    }
28
29
    public function testGetTitle()
30
    {
31
        $this->assertSame('testTitle', $this->blogEntry->getTitle());
32
    }
33
}