Skip to content

Commit

Permalink
fix Coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
carnage committed Oct 10, 2020
1 parent 588140d commit 44ca802
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Functional/Query/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ protected function setUp(): void
self::$generated = true;
}

public function testReadLock()
public function testReadLock(): void
{
$sut = $this->connection->createQueryBuilder();
$sut = $this->connection->createQueryBuilder();
$query = $sut->select('lt.*')
->from('lock_test_table', 'lt')
->setLockMode(LockMode::PESSIMISTIC_READ)
Expand All @@ -60,11 +60,11 @@ public function testReadLock()
self::assertEquals(1, $record[0]['primary_key']);
}

public function testWriteLock()
public function testWriteLock(): void
{
$sut = $this->connection->createQueryBuilder();
$sut = $this->connection->createQueryBuilder();
$query = $sut->select('lt.*')
->from('lock_test_table')
->from('lock_test_table', 'lt')
->setLockMode(LockMode::PESSIMISTIC_WRITE)
->where($sut->expr()->eq('lt.data', '?'))
->setParameter(0, 'bar', ParameterType::STRING);
Expand Down

0 comments on commit 44ca802

Please sign in to comment.