Google\Cloud\Tests\Datastore\OperationTest::testReadConsistencyInReadOptions PHP Method

testReadConsistencyInReadOptions() public method

    public function testReadConsistencyInReadOptions()
    {
        $this->connection->lookup(Argument::that(function ($arg) {
            if ($arg['readOptions']['readConsistency'] !== 'test') {
                return true;
            }
            return true;
        }))->willReturn([]);
        $this->operation->setConnection($this->connection->reveal());
        $k = $this->prophesize(Key::class);
        $k->state()->willReturn(Key::STATE_NAMED);
        $this->operation->lookup([$k->reveal()], ['readConsistency' => 'test']);
    }