1 | <?php |
||
16 | class LogicalOrTest extends BaseTest |
||
17 | { |
||
18 | /** |
||
19 | * Test parsing of OR statement. |
||
20 | * |
||
21 | * Notice regarding multiple criteria of same type: |
||
22 | * |
||
23 | * The XML decoder of EZ is not creating numeric arrays, instead using the tag as the array key. See |
||
24 | * variable $logicalOrParsedFromXml. This causes the Field Tag to appear as one-element |
||
25 | * (type numeric array) and two criteria configuration inside. The logical or parser will take care |
||
26 | * of this and return a flatt LogicalOr criterion with 4 criteria inside. |
||
27 | * |
||
28 | * ``` |
||
29 | * <OR> |
||
30 | * <ContentTypeIdentifierCriterion>author</ContentTypeIdentifierCriterion> |
||
31 | * <ContentTypeIdentifierCriterion>book</ContentTypeIdentifierCriterion> |
||
32 | * <Field> |
||
33 | * <name>title</name> |
||
34 | * <operator>EQ</operator> |
||
35 | * <value>Contributing to projects</value> |
||
36 | * </Field> |
||
37 | * <Field> |
||
38 | * <name>title</name> |
||
39 | * <operator>EQ</operator> |
||
40 | * <value>Contributing to projects</value> |
||
41 | * </Field> |
||
42 | * </OR> |
||
43 | * ``` |
||
44 | */ |
||
45 | public function testParseLogicalOr() |
||
81 | |||
82 | /** |
||
83 | * @expectedException \eZ\Publish\Core\REST\Common\Exceptions\Parser |
||
84 | */ |
||
85 | public function testThrowsExceptionOnInvalidAndStatement() |
||
89 | |||
90 | /** |
||
91 | * @return Parser\Criterion\LogicalOr |
||
92 | */ |
||
93 | protected function internalGetParser() |
||
97 | } |
||
98 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.