13
13
use Neo4j \QueryAPI \Objects \ProfiledQueryPlan ;
14
14
use Neo4j \QueryAPI \OGM ;
15
15
use Neo4j \QueryAPI \ResponseParser ;
16
+ use Neo4j \QueryAPI \Results \ResultSet ;
16
17
use Nyholm \Psr7 \Factory \Psr17Factory ;
17
18
use PHPUnit \Framework \TestCase ;
18
19
@@ -40,7 +41,7 @@ public function testProfileExistence(): void
40
41
{
41
42
$ query = "PROFILE MATCH (n:Person) RETURN n.name " ;
42
43
$ result = $ this ->api ->run ($ query );
43
- $ this ->assertNotNull ($ result ->getProfiledQueryPlan () , "Profiled query plan not found " );
44
+ $ this ->assertNotNull ($ result ->profiledQueryPlan , "Profiled query plan not found " );
44
45
}
45
46
46
47
public function testProfileCreateQueryExistence (): void
@@ -59,7 +60,7 @@ public function testProfileCreateQueryExistence(): void
59
60
" ;
60
61
61
62
$ result = $ this ->api ->run ($ query );
62
- $ this ->assertNotNull ($ result ->getProfiledQueryPlan () , "Profiled query plan not found " );
63
+ $ this ->assertNotNull ($ result ->profiledQueryPlan , "Profiled query plan not found " );
63
64
}
64
65
65
66
public function testProfileCreateMovieQueryExistence (): void
@@ -77,7 +78,7 @@ public function testProfileCreateMovieQueryExistence(): void
77
78
" ;
78
79
79
80
$ result = $ this ->api ->run ($ query );
80
- $ this ->assertNotNull ($ result ->getProfiledQueryPlan () , "Profiled query plan not found " );
81
+ $ this ->assertNotNull ($ result ->profiledQueryPlan , "Profiled query plan not found " );
81
82
}
82
83
83
84
public function testProfileCreateFriendsQueryExistence (): void
@@ -89,6 +90,6 @@ public function testProfileCreateFriendsQueryExistence(): void
89
90
" ;
90
91
91
92
$ result = $ this ->api ->run ($ query );
92
- $ this ->assertNotNull ($ result ->getProfiledQueryPlan () , "Profiled query plan not found " );
93
+ $ this ->assertNotNull ($ result ->profiledQueryPlan , "Profiled query plan not found " );
93
94
}
94
95
}
0 commit comments