Completed
Push — master ( c35bbf...e102f3 )
by Tim
15:24
created

UriFrontendTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 2
dl 0
loc 13
rs 10
1
<?php
2
/**
3
 * UriFrontendTest
4
 */
5
6
namespace FRUIT\FlRealurlImage\Tests\Unit\Cache;
7
8
use FRUIT\FlRealurlImage\Cache\UriFrontend;
9
use TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend;
10
use TYPO3\CMS\Core\Tests\UnitTestCase;
11
12
/**
13
 * UriFrontendTest
14
 */
15
class UriFrontendTest extends UnitTestCase
16
{
17
18
    /**
19
     * @test
20
     */
21
    public function cacheIdentifierIsAlwaysValid()
22
    {
23
        $dbBackend = new Typo3DatabaseBackend('Production');
24
        $cacheFrontend = new UriFrontend('test', $dbBackend);
25
        $this->assertEquals(true, $cacheFrontend->isValidEntryIdentifier('Strange code here'));
26
    }
27
}
28