| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class QueryHelperTest extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @dataProvider \Yiisoft\Db\Tests\Query\Helper\QueryHelperProviders::tablesNameDataProvider |
||
| 16 | */ |
||
| 17 | public function testCleanUpTableNames(array $tables, string $prefixDatabase, array $expected): void |
||
|
|
|||
| 18 | { |
||
| 19 | $this->assertEquals( |
||
| 20 | $expected, |
||
| 21 | Mock::queryHelper()->cleanUpTableNames($tables, new Quoter('"', '"')) |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @dataProvider \Yiisoft\Db\Tests\Query\Helper\QueryHelperProviders::filterConditionDataProvider |
||
| 27 | */ |
||
| 28 | public function testFilterCondition(array|string $condition, array|string $expected): void |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @dataProvider \Yiisoft\Db\Tests\Query\Helper\QueryHelperProviders::normalizeOrderByProvider |
||
| 35 | */ |
||
| 36 | public function testNormalizeOrderBy(array|string|Expression $columns, array|string $expected): void |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @dataProvider \Yiisoft\Db\Tests\Query\Helper\QueryHelperProviders::normalizeSelectProvider |
||
| 43 | */ |
||
| 44 | public function testNormalizeSelect(array|string|Expression $columns, array|string $expected): void |
||
| 49 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.