This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +13
-27
lines changed
dev/tests/integration/testsuite/Magento/Framework/Data/Argument/Interpreter
lib/internal/Magento/Framework Expand file tree Collapse file tree 6 files changed +13
-27
lines changed Original file line number Diff line number Diff line change 7
7
-->
8
8
<xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema" elementFormDefault =" qualified" >
9
9
<xs : redefine schemaLocation =" urn:magento:framework:Data/etc/argument/types.xsd" >
10
- <xs : complexType name =" string" >
11
- <xs : complexContent >
12
- <xs : extension base =" argumentType" >
13
- <xs : attribute name =" translate" use =" optional" type =" xs:boolean" />
14
- </xs : extension >
15
- </xs : complexContent >
16
- </xs : complexType >
17
-
18
10
<xs : complexType name =" argumentType" abstract =" true" mixed =" false" >
19
11
<xs : complexContent >
20
12
<xs : extension base =" argumentType" />
Original file line number Diff line number Diff line change 9
9
use Magento \Framework \Stdlib \BooleanUtils ;
10
10
11
11
/**
12
- * @covers StringUtils
12
+ * @covers \Magento\Framework\Data\Argument\Interpreter\ StringUtils
13
13
*/
14
14
class StringUtilsTest extends \PHPUnit_Framework_TestCase
15
15
{
Original file line number Diff line number Diff line change 9
9
use Magento \Framework \Stdlib \BooleanUtils ;
10
10
11
11
/**
12
- * @covers TranslatableStringUtils
12
+ * @covers \Magento\Framework\Data\Argument\Interpreter\ TranslatableStringUtils
13
13
*/
14
14
class TranslatableStringUtilsTest extends \PHPUnit_Framework_TestCase
15
15
{
Original file line number Diff line number Diff line change 33
33
</xs : complexType >
34
34
35
35
<xs : complexType name =" string" >
36
- <xs : annotation >
37
- <xs : documentation >
38
- @deprecated
39
- DI processing MUST not make translation by its own. Should be declared in children.
40
- </xs : documentation >
41
- </xs : annotation >
42
36
<xs : complexContent >
43
37
<xs : extension base =" argumentType" >
44
38
<xs : attribute name =" translate" use =" optional" type =" xs:boolean" />
45
39
</xs : extension >
46
40
</xs : complexContent >
47
41
</xs : complexType >
48
42
43
+ <xs : complexType name =" translatable" >
44
+ <xs : complexContent >
45
+ <xs : extension base =" string" >
46
+ <xs : attribute name =" translatable" use =" optional" type =" xs:boolean" />
47
+ </xs : extension >
48
+ </xs : complexContent >
49
+ </xs : complexType >
50
+
49
51
<xs : complexType name =" boolean" >
50
52
<xs : complexContent >
51
53
<xs : extension base =" argumentType" />
Original file line number Diff line number Diff line change 12
12
<xs : redefine schemaLocation =" urn:magento:framework:Data/etc/argument/types.xsd" >
13
13
<xs : complexType name =" string" >
14
14
<xs : complexContent >
15
- <xs : extension base =" argumentType " >
16
- <xs : attribute name =" translatable " use =" optional " type = " xs:boolean " />
17
- </xs : extension >
15
+ <xs : restriction base =" translatable " >
16
+ <xs : attribute name =" translate " use =" prohibited " />
17
+ </xs : restriction >
18
18
</xs : complexContent >
19
19
</xs : complexType >
20
20
Original file line number Diff line number Diff line change 8
8
<xs : schema xmlns : xs =" http://www.w3.org/2001/XMLSchema" >
9
9
<!-- Redefine section -->
10
10
<xs : redefine schemaLocation =" urn:magento:framework:Data/etc/argument/types.xsd" >
11
- <xs : complexType name =" string" >
12
- <xs : complexContent >
13
- <xs : extension base =" argumentType" >
14
- <xs : attribute name =" translate" use =" optional" type =" xs:boolean" />
15
- </xs : extension >
16
- </xs : complexContent >
17
- </xs : complexType >
18
-
19
11
<xs : complexType name =" argumentType" abstract =" true" mixed =" true" >
20
12
<xs : complexContent >
21
13
<xs : extension base =" argumentType" >
You can’t perform that action at this time.
0 commit comments