Skip to content

Commit 55cca3f

Browse files
committed
Tests debug
1 parent 97ef789 commit 55cca3f

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

.github/workflows/run-tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ jobs:
6868
- name: Run tests
6969
run: |
7070
./vendor/bin/pest --version
71-
mkdir -p ./.pest/cache
72-
./vendor/bin/pest --cache-directory=./.pest/cache
71+
./vendor/bin/pest
7372
env:
7473
REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
7574
OPENSEARCH_PORT: ${{ job.services.opensearch.ports['9200'] }}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ secrets.nix
2323
build
2424
composer.lock
2525
coverage
26-
docs
2726
phpunit.xml
2827
phpstan.neon
2928
testbench.yaml

composer.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,8 @@
4747
},
4848
"autoload": {
4949
"psr-4": {
50-
"PDPhilip\\OpenSearch\\": "src/"
51-
}
52-
},
53-
"extra": {
54-
"laravel": {
55-
"providers": [
56-
"PDPhilip\\OpenSearch\\OpenSearchServiceProvider"
57-
]
50+
"PDPhilip\\OpenSearch\\": "src/",
51+
"PDPhilip\\OpenSearch\\Tests\\": "tests"
5852
}
5953
},
6054
"config": {
@@ -65,6 +59,13 @@
6559
"phpstan/extension-installer": true
6660
}
6761
},
62+
"extra": {
63+
"laravel": {
64+
"providers": [
65+
"PDPhilip\\OpenSearch\\OpenSearchServiceProvider"
66+
]
67+
}
68+
},
6869
"scripts": {
6970
"post-autoload-dump": [
7071
"@clear",

src/Query/Builder.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ public function whereWithOptions(...$args): self
13261326
{
13271327
$options = array_pop($args);
13281328
$type = array_shift($args);
1329-
$method = $type == 'Basic' ? 'where' : 'where' . $type;
1329+
$method = $type == 'Basic' ? 'where' : 'where'.$type;
13301330

13311331
$this->$method(...$args);
13321332

@@ -1796,7 +1796,7 @@ protected function aggregateMultiMetric(array $functions, string $column, $optio
17961796
// Each column we want aggregated
17971797
foreach ($functions as $function) {
17981798
$this->metricsAggregations[] = [
1799-
'key' => $function . '_' . $column,
1799+
'key' => $function.'_'.$column,
18001800
'args' => $column,
18011801
'type' => $function,
18021802
'options' => $options,
@@ -2014,7 +2014,7 @@ public function onConflicts(string $option = self::CONFLICT['PROCEED']): self
20142014
}
20152015

20162016
throw new \Exception(
2017-
"$option is an invalid conflict option, valid options are: " . implode(', ', self::CONFLICT)
2017+
"$option is an invalid conflict option, valid options are: ".implode(', ', self::CONFLICT)
20182018
);
20192019
}
20202020

@@ -2438,7 +2438,7 @@ public function inferIndex(): string
24382438
$table = $this->from;
24392439
$suffix = $this->options()->get('suffix', '');
24402440

2441-
return $prefix . $table . $suffix;
2441+
return $prefix.$table.$suffix;
24422442
}
24432443

24442444
private function prepareTimestamp($value): string|int

0 commit comments

Comments
 (0)