aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2021-01-12 09:15:48 +0000
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-18 13:31:24 +0100
commiteb502c02ff7693bb36318d857985f79e7bac370c (patch)
tree61a7a10839f0c3a19bf8af869af267c484b51e02 /tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
parentd79cc8ea6ddc6f562ed0eeffc13cdbedf5df81bb (diff)
downloadnextcloud-server-eb502c02ff7693bb36318d857985f79e7bac370c.tar.gz
nextcloud-server-eb502c02ff7693bb36318d857985f79e7bac370c.zip
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php')
-rw-r--r--tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
index 2a3a4e9a9c1..76d9dab75ee 100644
--- a/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
+++ b/tests/lib/DB/QueryBuilder/ExpressionBuilderTest.php
@@ -82,8 +82,8 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isInput2Literal
*/
public function testComparison($comparison, $input1, $isInput1Literal, $input2, $isInput2Literal) {
- list($doctrineInput1, $ocInput1) = $this->helpWithLiteral($input1, $isInput1Literal);
- list($doctrineInput2, $ocInput2) = $this->helpWithLiteral($input2, $isInput2Literal);
+ [$doctrineInput1, $ocInput1] = $this->helpWithLiteral($input1, $isInput1Literal);
+ [$doctrineInput2, $ocInput2] = $this->helpWithLiteral($input2, $isInput2Literal);
$this->assertEquals(
$this->doctrineExpressionBuilder->comparison($doctrineInput1, $comparison, $doctrineInput2),
@@ -109,8 +109,8 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isInput2Literal
*/
public function testEquals($input1, $isInput1Literal, $input2, $isInput2Literal) {
- list($doctrineInput1, $ocInput1) = $this->helpWithLiteral($input1, $isInput1Literal);
- list($doctrineInput2, $ocInput2) = $this->helpWithLiteral($input2, $isInput2Literal);
+ [$doctrineInput1, $ocInput1] = $this->helpWithLiteral($input1, $isInput1Literal);
+ [$doctrineInput2, $ocInput2] = $this->helpWithLiteral($input2, $isInput2Literal);
$this->assertEquals(
$this->doctrineExpressionBuilder->eq($doctrineInput1, $doctrineInput2),
@@ -127,8 +127,8 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isInput2Literal
*/
public function testNotEquals($input1, $isInput1Literal, $input2, $isInput2Literal) {
- list($doctrineInput1, $ocInput1) = $this->helpWithLiteral($input1, $isInput1Literal);
- list($doctrineInput2, $ocInput2) = $this->helpWithLiteral($input2, $isInput2Literal);
+ [$doctrineInput1, $ocInput1] = $this->helpWithLiteral($input1, $isInput1Literal);
+ [$doctrineInput2, $ocInput2] = $this->helpWithLiteral($input2, $isInput2Literal);
$this->assertEquals(
$this->doctrineExpressionBuilder->neq($doctrineInput1, $doctrineInput2),
@@ -145,8 +145,8 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isInput2Literal
*/
public function testLowerThan($input1, $isInput1Literal, $input2, $isInput2Literal) {
- list($doctrineInput1, $ocInput1) = $this->helpWithLiteral($input1, $isInput1Literal);
- list($doctrineInput2, $ocInput2) = $this->helpWithLiteral($input2, $isInput2Literal);
+ [$doctrineInput1, $ocInput1] = $this->helpWithLiteral($input1, $isInput1Literal);
+ [$doctrineInput2, $ocInput2] = $this->helpWithLiteral($input2, $isInput2Literal);
$this->assertEquals(
$this->doctrineExpressionBuilder->lt($doctrineInput1, $doctrineInput2),
@@ -163,8 +163,8 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isInput2Literal
*/
public function testLowerThanEquals($input1, $isInput1Literal, $input2, $isInput2Literal) {
- list($doctrineInput1, $ocInput1) = $this->helpWithLiteral($input1, $isInput1Literal);
- list($doctrineInput2, $ocInput2) = $this->helpWithLiteral($input2, $isInput2Literal);
+ [$doctrineInput1, $ocInput1] = $this->helpWithLiteral($input1, $isInput1Literal);
+ [$doctrineInput2, $ocInput2] = $this->helpWithLiteral($input2, $isInput2Literal);
$this->assertEquals(
$this->doctrineExpressionBuilder->lte($doctrineInput1, $doctrineInput2),
@@ -181,8 +181,8 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isInput2Literal
*/
public function testGreaterThan($input1, $isInput1Literal, $input2, $isInput2Literal) {
- list($doctrineInput1, $ocInput1) = $this->helpWithLiteral($input1, $isInput1Literal);
- list($doctrineInput2, $ocInput2) = $this->helpWithLiteral($input2, $isInput2Literal);
+ [$doctrineInput1, $ocInput1] = $this->helpWithLiteral($input1, $isInput1Literal);
+ [$doctrineInput2, $ocInput2] = $this->helpWithLiteral($input2, $isInput2Literal);
$this->assertEquals(
$this->doctrineExpressionBuilder->gt($doctrineInput1, $doctrineInput2),
@@ -199,8 +199,8 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isInput2Literal
*/
public function testGreaterThanEquals($input1, $isInput1Literal, $input2, $isInput2Literal) {
- list($doctrineInput1, $ocInput1) = $this->helpWithLiteral($input1, $isInput1Literal);
- list($doctrineInput2, $ocInput2) = $this->helpWithLiteral($input2, $isInput2Literal);
+ [$doctrineInput1, $ocInput1] = $this->helpWithLiteral($input1, $isInput1Literal);
+ [$doctrineInput2, $ocInput2] = $this->helpWithLiteral($input2, $isInput2Literal);
$this->assertEquals(
$this->doctrineExpressionBuilder->gte($doctrineInput1, $doctrineInput2),
@@ -236,7 +236,7 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isLiteral
*/
public function testLike($input, $isLiteral) {
- list($doctrineInput, $ocInput) = $this->helpWithLiteral($input, $isLiteral);
+ [$doctrineInput, $ocInput] = $this->helpWithLiteral($input, $isLiteral);
$this->assertEquals(
$this->doctrineExpressionBuilder->like('`test`', $doctrineInput),
@@ -251,7 +251,7 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isLiteral
*/
public function testNotLike($input, $isLiteral) {
- list($doctrineInput, $ocInput) = $this->helpWithLiteral($input, $isLiteral);
+ [$doctrineInput, $ocInput] = $this->helpWithLiteral($input, $isLiteral);
$this->assertEquals(
$this->doctrineExpressionBuilder->notLike('`test`', $doctrineInput),
@@ -275,7 +275,7 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isLiteral
*/
public function testIn($input, $isLiteral) {
- list($doctrineInput, $ocInput) = $this->helpWithLiteral($input, $isLiteral);
+ [$doctrineInput, $ocInput] = $this->helpWithLiteral($input, $isLiteral);
$this->assertEquals(
$this->doctrineExpressionBuilder->in('`test`', $doctrineInput),
@@ -290,7 +290,7 @@ class ExpressionBuilderTest extends TestCase {
* @param bool $isLiteral
*/
public function testNotIn($input, $isLiteral) {
- list($doctrineInput, $ocInput) = $this->helpWithLiteral($input, $isLiteral);
+ [$doctrineInput, $ocInput] = $this->helpWithLiteral($input, $isLiteral);
$this->assertEquals(
$this->doctrineExpressionBuilder->notIn('`test`', $doctrineInput),