Skip to content

Commit 1f74d1a

Browse files
author
esazykin
committed
Merge branch 'master' of github.com:esazykin/laravel-clickhouse
2 parents 4551942 + d2076ec commit 1f74d1a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/Unit/Database/ConnectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace Esazykin\LaravelClickHouse\Tests\Database;
66

7+
use PHPUnit\Framework\TestCase;
78
use Esazykin\LaravelClickHouse\Database\Connection;
89
use Esazykin\LaravelClickHouse\Database\Query\Builder;
9-
use PHPUnit\Framework\TestCase;
1010

1111
class ConnectionTest extends TestCase
1212
{
@@ -16,4 +16,4 @@ public function testQuery()
1616

1717
$this->assertInstanceOf(Builder::class, $connection->query());
1818
}
19-
}
19+
}

tests/Unit/Database/Eloquent/BuilderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Esazykin\LaravelClickHouse\Tests\Unit\Database\Eloquent;
66

7-
use Illuminate\Database\Eloquent\ModelNotFoundException;
87
use Mockery\Mock;
98
use PHPUnit\Framework\TestCase;
109
use Illuminate\Database\DatabaseManager;
@@ -14,6 +13,7 @@
1413
use Tinderbox\ClickhouseBuilder\Query\Identifier;
1514
use Esazykin\LaravelClickHouse\Database\Connection;
1615
use Tinderbox\ClickhouseBuilder\Query\Enums\Operator;
16+
use Illuminate\Database\Eloquent\ModelNotFoundException;
1717
use Esazykin\LaravelClickHouse\Database\Eloquent\Builder;
1818
use Esazykin\LaravelClickHouse\Database\Eloquent\Collection;
1919
use Esazykin\LaravelClickHouse\Tests\EloquentModelCastingTest;
@@ -137,7 +137,7 @@ public function testOrWhere()
137137

138138
$sql = $this->builder->toSql();
139139
$this->assertSame(
140-
'SELECT * FROM `test_table` WHERE `id` = ' . $id . ' OR `date_column` > \'' . $date . '\'',
140+
'SELECT * FROM `test_table` WHERE `id` = '.$id.' OR `date_column` > \''.$date.'\'',
141141
$sql
142142
);
143143
}
@@ -154,7 +154,7 @@ public function testFind()
154154
$this->connection
155155
->shouldReceive('select')
156156
->andReturn([
157-
['id' => $id, 'stringAttribute' => $stringAttribute,]
157+
['id' => $id, 'stringAttribute' => $stringAttribute],
158158
]);
159159

160160
$model = $this->builder->find($id);

0 commit comments

Comments
 (0)