Conditions | 1 |
Paths | 1 |
Total Lines | 36 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
53 | public function dataProviderSetTest() { |
||
54 | return [ |
||
55 | [ |
||
56 | null, |
||
57 | [ 1 => true ] |
||
58 | ], |
||
59 | [ |
||
60 | '', |
||
61 | [ 1 => true ] |
||
62 | ], |
||
63 | [ |
||
64 | [ ], |
||
65 | [ 1 => true ] |
||
66 | ], |
||
67 | [ |
||
68 | [ '' ], |
||
69 | [ 1 => true ] |
||
70 | ], |
||
71 | [ |
||
72 | [ 'has text=test' ], |
||
73 | [ 1 => true ] |
||
74 | ], |
||
75 | [ |
||
76 | [ 'has type=test' ], |
||
77 | [ [ 1 => false, 'error' => wfMessage('smw-datavalue-property-restricted-declarative-use', 'Has type')->inLanguage('en')->plain() ] ] |
||
78 | ], |
||
79 | [ |
||
80 | [ '1215623e790d918773db943232068a93b21c9f1419cb85666c6558e87f5b7d47=test' ], |
||
81 | [ 1 => true ] |
||
82 | ], |
||
83 | [ |
||
84 | [ '1215623e790d918773db943232068a93b21c9f1419cb85666c6558e87f5b7d47=test', 'foo' => 'bar' ], |
||
85 | [ 1 => true ] |
||
86 | ] |
||
87 | ]; |
||
88 | } |
||
89 | } |