Total Complexity | 4 |
Total Lines | 83 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class IndexTest extends AbstractTableTest |
||
9 | { |
||
10 | /** |
||
11 | * @throws \Exception |
||
12 | */ |
||
13 | public function testIndexCreate() |
||
14 | { |
||
15 | $this->insertDocument(1); |
||
16 | |||
17 | $res = $this->r() |
||
18 | ->table('tabletest') |
||
19 | ->indexCreate('title') |
||
20 | ->run(); |
||
21 | |||
22 | $this->assertObStatus(['created' => 1], $res->getData()); |
||
|
|||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @throws \Exception |
||
27 | */ |
||
28 | public function testIndexDrop() |
||
29 | { |
||
30 | $this->insertDocument(1); |
||
31 | |||
32 | $this->r() |
||
33 | ->table('tabletest') |
||
34 | ->indexCreate('title') |
||
35 | ->run(); |
||
36 | |||
37 | $res = $this->r() |
||
38 | ->table('tabletest') |
||
39 | ->indexDrop('title') |
||
40 | ->run(); |
||
41 | |||
42 | $this->assertObStatus(['dropped' => 1], $res->getData()); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @throws \Exception |
||
47 | */ |
||
48 | public function testIndexList() |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @throws \Exception |
||
68 | */ |
||
69 | public function testIndexRename() |
||
91 | } |
||
92 | } |
||
93 |
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.