@@ -53,17 +53,10 @@ public function testWithExactNames(): void
53
53
54
54
$ this ->assertEquals ($ expected ->getQueryCounters (), $ results ->getQueryCounters ());
55
55
$ this ->assertNotEmpty (iterator_to_array ($ results ), 'No results returned from query. ' );
56
-
57
- $ filteredResults = array_values (array_filter (
58
- iterator_to_array ($ results ),
59
- fn (ResultRow $ row ) => in_array ($ row ['n.name ' ] ?? '' , ['bob1 ' , 'alicy ' ], true )
60
- ));
61
-
62
- $ bookmarks = $ results ->getBookmarks ();
63
- $ this ->assertNotNull ($ bookmarks , "Bookmarks should not be null. " );
56
+ $ bookmarks = $ results ->getBookmarks () ?? new Bookmarks ([]);
57
+ $ this ->assertCount (1 , $ bookmarks );
64
58
}
65
59
66
-
67
60
public function testWithSingleName (): void
68
61
{
69
62
$ expected = new ResultSet (
@@ -81,10 +74,6 @@ public function testWithSingleName(): void
81
74
]);
82
75
83
76
$ this ->assertEquals ($ expected ->getQueryCounters (), $ results ->getQueryCounters ());
84
-
85
- $ filteredResults = array_slice (iterator_to_array ($ results ), 0 , 1 );
86
- $ this ->assertEquals (iterator_to_array ($ expected ), $ filteredResults );
87
-
88
77
$ bookmarks = $ results ->getBookmarks () ?: [];
89
78
$ this ->assertCount (1 , $ bookmarks );
90
79
}
0 commit comments