Skip to content

Commit 81d4b68

Browse files
Remove removed parameter from tests
1 parent 1a35d1b commit 81d4b68

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/unit/Expressions/ExistsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testToQuery(): void
4848
)
4949
),
5050
(new WhereClause)->addExpression(
51-
new Equality(new Property(new Variable('toy'), 'name'), new String_('Banana'), false)
51+
new Equality(new Property(new Variable('toy'), 'name'), new String_('Banana'))
5252
)
5353
);
5454

tests/unit/Expressions/Operators/AdditionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testToQuery(): void
4040
$this->assertEquals($addition, $newAddition->getLeft());
4141
$this->assertEquals($addition, $newAddition->getRight());
4242

43-
$newAddition = new Addition($addition, $addition, false);
43+
$newAddition = new Addition($addition, $addition);
4444

4545
$this->assertSame("(10 + 15.0) + (10 + 15.0)", $newAddition->toQuery());
4646

tests/unit/Expressions/Operators/GreaterThanTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testToQuery(): void
2525

2626
$this->assertSame("10 > 15", $greaterThan->toQuery());
2727

28-
$greaterThan = new GreaterThan($greaterThan, $greaterThan, false);
28+
$greaterThan = new GreaterThan($greaterThan, $greaterThan);
2929

3030
$this->assertSame("10 > 15 > 10 > 15", $greaterThan->toQuery());
3131
}

tests/unit/Expressions/Operators/IsNotNullTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class IsNotNullTest extends TestCase
2121
{
2222
public function testToQuery(): void
2323
{
24-
$isNotNull = new IsNotNull(new Boolean(true), false);
24+
$isNotNull = new IsNotNull(new Boolean(true));
2525

2626
$this->assertSame("true IS NOT NULL", $isNotNull->toQuery());
2727

tests/unit/Expressions/Operators/IsNullTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class IsNullTest extends TestCase
2121
{
2222
public function testToQuery(): void
2323
{
24-
$isNull = new IsNull(new Boolean(true), false);
24+
$isNull = new IsNull(new Boolean(true));
2525

2626
$this->assertSame("true IS NULL", $isNull->toQuery());
2727

tests/unit/Expressions/Operators/LessThanTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testToQuery(): void
2525

2626
$this->assertSame("10 < 15", $lessThan->toQuery());
2727

28-
$lessThan = new LessThan($lessThan, $lessThan, false);
28+
$lessThan = new LessThan($lessThan, $lessThan);
2929

3030
$this->assertSame("10 < 15 < 10 < 15", $lessThan->toQuery());
3131
}

tests/unit/Expressions/Operators/MultiplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ public function testToQuery(): void
3434

3535
public function testInstanceOfFloatType(): void
3636
{
37-
$multiplication = new Multiplication(new Float_(10.0), new Float_(15.0), false);
37+
$multiplication = new Multiplication(new Float_(10.0), new Float_(15.0));
3838

3939
$this->assertInstanceOf(FloatType::class, $multiplication);
4040
}
4141

4242
public function testInstanceOfIntegerType(): void
4343
{
44-
$multiplication = new Multiplication(new Integer(10), new Integer(15), false);
44+
$multiplication = new Multiplication(new Integer(10), new Integer(15));
4545

4646
$this->assertInstanceOf(IntegerType::class, $multiplication);
4747
}

tests/unit/Patterns/PathTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ public function testPathCanBeTreatedAsBoolean(): void
109109
$pathA = new Path([new Node(), new Node()], [new Relationship(Direction::UNI)]);
110110
$pathB = new Path([new Node(), new Node()], [new Relationship(Direction::RIGHT)]);
111111

112-
$this->assertSame("()--() AND ()-->()", $pathA->and($pathB, false)->toQuery());
112+
$this->assertSame("()--() AND ()-->()", $pathA->and($pathB)->toQuery());
113113
}
114114
}

tests/unit/QueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function testBuild(): void
303303

304304
$pathMock = new Path([$nodeMock, (new Node)->withVariable('b')], [new Relationship(Direction::RIGHT)]);
305305
$numeralMock = new Integer(12);
306-
$booleanMock = new GreaterThan($variableMock, new Variable('b'), false);
306+
$booleanMock = new GreaterThan($variableMock, new Variable('b'));
307307
$propertyMock = new Property($variableMock, 'b');
308308

309309
$query = new Query();

0 commit comments

Comments
 (0)