TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ExtensionTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Model
;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
17
use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
18
22
class
ExtensionTest
extends
UnitTestCase
23
{
29
public
function
getCategoryIndexFromStringOrNumberReturnsIndexDataProvider
()
30
{
31
return
[
32
'empty string'
=> [
33
''
,
34
4
35
],
36
'existing category string'
=> [
37
'plugin'
,
38
3
39
],
40
'not existing category string'
=> [
41
'foo'
,
42
4
43
],
44
'string number 3'
=> [
45
'3'
,
46
3
47
],
48
'integer 3'
=> [
49
3,
50
3
51
],
52
'string number not in range -1'
=> [
53
'-1'
,
54
4
55
],
56
'integer not in range -1'
=> [
57
-1,
58
4
59
],
60
'string number not in range 11'
=> [
61
'11'
,
62
4
63
],
64
'integer not in range 11'
=> [
65
11,
66
4
67
],
68
'object'
=> [
69
new \stdClass(),
70
4
71
],
72
'array'
=> [
73
[],
74
4
75
],
76
];
77
}
78
85
public
function
getCategoryIndexFromStringOrNumberReturnsIndex
($input, $expected)
86
{
87
$extension = new \TYPO3\CMS\Extensionmanager\Domain\Model\Extension;
88
$this->assertEquals($expected, $extension->getCategoryIndexFromStringOrNumber($input));
89
}
90
}
TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Model
Definition:
DownloadQueueTest.php:2
TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Model\ExtensionTest
Definition:
ExtensionTest.php:23
TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Model\ExtensionTest\getCategoryIndexFromStringOrNumberReturnsIndex
getCategoryIndexFromStringOrNumberReturnsIndex($input, $expected)
Definition:
ExtensionTest.php:85
TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Model\ExtensionTest\getCategoryIndexFromStringOrNumberReturnsIndexDataProvider
array getCategoryIndexFromStringOrNumberReturnsIndexDataProvider()
Definition:
ExtensionTest.php:29
doxygen
typo3
sysext
extensionmanager
Tests
Unit
Domain
Model
ExtensionTest.php
Generated on Tue Oct 5 2021 01:57:36 for TYPO3CMS by
1.8.18