| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 69 | public function testIndexRename() |
||
| 70 | { |
||
| 71 | $this->insertDocument(1); |
||
| 72 | |||
| 73 | $this->r() |
||
| 74 | ->table('tabletest') |
||
| 75 | ->indexCreate('title') |
||
| 76 | ->run(); |
||
| 77 | |||
| 78 | $res = $this->r() |
||
| 79 | ->table('tabletest') |
||
| 80 | ->indexRename('title', 'description') |
||
| 81 | ->run(); |
||
| 82 | |||
| 83 | $this->assertObStatus(['renamed' => 1], $res->getData()); |
||
| 84 | |||
| 85 | $res = $this->r() |
||
| 86 | ->table('tabletest') |
||
| 87 | ->indexList() |
||
| 88 | ->run(); |
||
| 89 | |||
| 90 | $this->assertEquals('description', $res->getData()[0]); |
||
| 91 | } |
||
| 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.