File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44
55namespace Esazykin \LaravelClickHouse \Tests \Database ;
66
7+ use PHPUnit \Framework \TestCase ;
78use Esazykin \LaravelClickHouse \Database \Connection ;
89use Esazykin \LaravelClickHouse \Database \Query \Builder ;
9- use PHPUnit \Framework \TestCase ;
1010
1111class ConnectionTest extends TestCase
1212{
@@ -16,4 +16,4 @@ public function testQuery()
1616
1717 $ this ->assertInstanceOf (Builder::class, $ connection ->query ());
1818 }
19- }
19+ }
Original file line number Diff line number Diff line change 44
55namespace Esazykin \LaravelClickHouse \Tests \Unit \Database \Eloquent ;
66
7- use Illuminate \Database \Eloquent \ModelNotFoundException ;
87use Mockery \Mock ;
98use PHPUnit \Framework \TestCase ;
109use Illuminate \Database \DatabaseManager ;
1413use Tinderbox \ClickhouseBuilder \Query \Identifier ;
1514use Esazykin \LaravelClickHouse \Database \Connection ;
1615use Tinderbox \ClickhouseBuilder \Query \Enums \Operator ;
16+ use Illuminate \Database \Eloquent \ModelNotFoundException ;
1717use Esazykin \LaravelClickHouse \Database \Eloquent \Builder ;
1818use Esazykin \LaravelClickHouse \Database \Eloquent \Collection ;
1919use 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 );
You can’t perform that action at this time.
0 commit comments