Completed
Push — master ( 70eb6f...77c6d7 )
by Tim
17:02
created

SitemapProviderTest::testValidaNameConversion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * SitemapProviderTest
4
 */
5
6
namespace FRUIT\GoogleServices\Tests\Unit\Service;
7
8
use FRUIT\GoogleServices\Service\SitemapProvider;
9
use TYPO3\CMS\Core\Tests\UnitTestCase;
10
11
/**
12
 * SitemapProviderTest
13
 */
14
class SitemapProviderTest extends UnitTestCase
15
{
16
17
    /**
18
     * @test
19
     */
20
    public function testValidaNameConversion()
21
    {
22
        $className = 'Tx_ExtensionName_Domain_Model_Old_Name';
23
        $extensionName = SitemapProvider::getExtensionNameByClassName($className);
24
        $this->assertSame($extensionName, 'ExtensionName');
25
    }
26
}
27