1 | <?php |
||
11 | class MultipleValuedTest extends BaseTest |
||
12 | { |
||
13 | /** |
||
14 | * @dataProvider matchingConfigProvider |
||
15 | * @covers \eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\MultipleValued::setMatchingConfig |
||
16 | * @covers \eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\MultipleValued::getValues |
||
17 | */ |
||
18 | public function testSetMatchingConfig($matchingConfig) |
||
19 | { |
||
20 | $matcher = $this->getMultipleValuedMatcherMock(); |
||
21 | $matcher->setMatchingConfig($matchingConfig); |
||
|
|||
22 | $values = $matcher->getValues(); |
||
23 | $this->assertIsArray($values); |
||
24 | |||
25 | $matchingConfig = is_array($matchingConfig) ? $matchingConfig : [$matchingConfig]; |
||
26 | foreach ($matchingConfig as $val) { |
||
27 | $this->assertContains($val, $values); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Returns a set of matching values, either single or multiple. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | public function matchingConfigProvider() |
||
37 | { |
||
38 | return [ |
||
39 | [ |
||
40 | 'singleValue', |
||
41 | ['one', 'two', 'three'], |
||
42 | [123, 'nous irons au bois'], |
||
43 | 456, |
||
44 | ], |
||
45 | ]; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @covers \eZ\Publish\Core\MVC\RepositoryAware::setRepository |
||
50 | * @covers \eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\MultipleValued::getRepository |
||
51 | */ |
||
52 | public function testInjectRepository() |
||
58 | |||
59 | private function getMultipleValuedMatcherMock() |
||
63 | } |
||
64 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.