Skip to content

Commit 557f303

Browse files
committed
Add composer dependency allowing 8.1 tests to pass
Fix connection DSN
1 parent c7b5a7d commit 557f303

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
"source": "https://github.com/cakephp/elastic-search"
1919
},
2020
"require": {
21-
"cakephp/cakephp": "^5.0.0",
21+
"cakephp/cakephp": "^5.2.0",
2222
"ruflin/elastica": "^9.0"
2323
},
2424
"require-dev": {
2525
"cakephp/cakephp-codesniffer": "^5.0",
26-
"phpunit/phpunit": "^11.5.3 || ^12.1.3"
26+
"phpunit/phpunit": "^10.5.5 || ^11.5.3 || ^12.1.3",
27+
"nyholm/psr7": "^1.8"
2728
},
2829
"autoload": {
2930
"psr-4": {

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
elasticsearch:
1212
image: "elasticsearch:9.1.5"
1313
ports:
14-
- "9202:9200"
14+
- "9200:9200"
1515
environment:
1616
- discovery.type=single-node
1717
- ES_JAVA_OPTS=-Xms500m -Xmx500m

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
]);
5050

5151
if (!getenv('DB_URL')) {
52-
putenv('DB_URL=Cake\ElasticSearch\Datasource\Connection://127.0.0.1:9202?driver=Cake\ElasticSearch\Datasource\Connection');
52+
putenv('DB_URL=Cake\ElasticSearch\Datasource\Connection://127.0.0.1:9200?driver=Cake\ElasticSearch\Datasource\Connection');
5353
}
5454

5555
ConnectionManager::setConfig('test', ['url' => getenv('DB_URL')]);

0 commit comments

Comments
 (0)