Skip to content

Commit 35ed4c0

Browse files
committed
added small test
1 parent c8dc7c0 commit 35ed4c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Integration/StatisticsFormatterIntegrationTest.php renamed to tests/Integration/SummarizedResultFormatterTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @psalm-import-type BasicResults from \Laudis\Neo4j\Formatter\BasicFormatter
2727
*/
28-
final class StatisticsFormatterIntegrationTest extends EnvironmentAwareIntegrationTest
28+
final class SummarizedResultFormatterTest extends EnvironmentAwareIntegrationTest
2929
{
3030
protected function formatter(): FormatterInterface
3131
{
@@ -37,7 +37,9 @@ protected function formatter(): FormatterInterface
3737
*/
3838
public function testAcceptanceRead(string $alias): void
3939
{
40-
self::assertInstanceOf(SummarizedResult::class, $this->client->run('RETURN 1', [], $alias));
40+
$result = $this->client->run('RETURN 1 AS one', [], $alias);
41+
self::assertInstanceOf(SummarizedResult::class, $result);
42+
self::assertEquals(1, $result->getResult()->first()->get('one'));
4143
}
4244

4345
/**

0 commit comments

Comments
 (0)