Test Failed
Pull Request — master (#69)
by Timon
02:54
created

KeysTest::testKeysResult()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 13
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace TBolier\RethinkQL\IntegrationTest\Manipulation;
5
6
use TBolier\RethinkQL\IntegrationTest\Query\AbstractTableTest;
7
8
class KeysTest extends AbstractTableTest
9
{
10
    /**
11
     * @throws \Exception
12
     */
13
    public function testKeysResult()
14
    {
15
        $this->insertDocumentWithNumber(1, 1);
16
17
        /** @var Cursor $cursor */
18
        $cursor = $this->r()
19
            ->table('tabletest')
20
            ->get(1)
21
            ->keys()
22
            ->run();
23
24
        $this->assertInstanceOf(\Iterator::class, $cursor);
25
        $this->assertEquals(1, $cursor->count());
26
    }
27
}
28