Skip to content

Commit e4ccb3a

Browse files
author
esazykin
committed
Merge branch 'master' of github.com:esazykin/laravel-clickhouse
2 parents ea0feff + 2e513c3 commit e4ccb3a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/Unit/Database/Eloquent/CollectionTest.php

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

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

7-
use Carbon\Carbon;
87
use Mockery\Mock;
8+
use Carbon\Carbon;
99
use PHPUnit\Framework\TestCase;
1010
use Illuminate\Database\DatabaseManager;
1111
use Esazykin\LaravelClickHouse\Tests\Helpers;
@@ -42,7 +42,7 @@ public function testMapModelToModel()
4242
{
4343
$connectionResult = collect()
4444
->times(5, function (int $id) {
45-
return ['id' => $id,];
45+
return ['id' => $id];
4646
});
4747

4848
$this->connection
@@ -72,7 +72,7 @@ public function testMapModelToArray()
7272
{
7373
$connectionResult = collect()
7474
->times(5, function (int $id) {
75-
return ['id' => $id,];
75+
return ['id' => $id];
7676
});
7777

7878
$this->connection
@@ -107,7 +107,7 @@ public function testFind($key)
107107
{
108108
$connectionResult = collect()
109109
->times(5, function (int $id) {
110-
return ['id' => $id,];
110+
return ['id' => $id];
111111
});
112112

113113
$this->connection
@@ -135,7 +135,7 @@ public function testContains(bool $expected, $key, $operator = null, $value = nu
135135
{
136136
$connectionResult = collect()
137137
->times(5, function (int $id) {
138-
return ['id' => $id,];
138+
return ['id' => $id];
139139
});
140140

141141
$this->connection
@@ -157,7 +157,7 @@ public function testGet()
157157
->times(5, function (int $id) {
158158
return [
159159
'id' => $id,
160-
'floatAttribute' => (string)$this->faker()->randomFloat(2),
160+
'floatAttribute' => (string) $this->faker()->randomFloat(2),
161161
];
162162
});
163163

@@ -192,9 +192,9 @@ public function findDataProvider(): array
192192
[
193193
tap(new EloquentModelCastingTest, function (EloquentModelCastingTest $model) {
194194
$model->id = 5;
195-
})
195+
}),
196196
],
197-
[1, 5,]
197+
[1, 5],
198198
];
199199
}
200200

0 commit comments

Comments
 (0)