Google\Cloud\Tests\Datastore\TransactionTest::testLookupBatch PHP Method

testLookupBatch() public method

public testLookupBatch ( )
    public function testLookupBatch()
    {
        $this->operation->lookup(Argument::type('array'), Argument::that(function ($arg) {
            if ($arg['transaction'] !== $this->transactionId) {
                return false;
            }
            return true;
        }))->willReturn([]);
        $this->transaction->setOperation($this->operation->reveal());
        $k = $this->prophesize(Key::class);
        $this->transaction->lookupBatch([$k->reveal()]);
    }