Skip to content

Commit 683729a

Browse files
committed
clean database before connecting to aura
1 parent 47638c6 commit 683729a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/integration-test-aura.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
progress: yes
2828
php_version: 8.0
2929
version: 2
30+
- name: clean database
31+
run: php tests/clean-database.php
3032
- uses: php-actions/phpunit@v3
3133
with:
3234
configuration: phpunit.xml.dist

tests/clean-database.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the Neo4j PHP Client and Driver package.
7+
*
8+
* (c) Nagels <https://nagels.tech>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
13+
14+
use Laudis\Neo4j\Basic\Driver;
15+
16+
require __DIR__.'/../vendor/autoload.php';
17+
18+
$connection = $_ENV['CONNECTION'] ?? 'neo4j://neo4j:testtest@localhost';
19+
20+
Driver::create($connection)->createSession()->run('MATCH (x) DETACH DELETE x');

0 commit comments

Comments
 (0)