Google\Cloud\Tests\Datastore\OperationTest::testMutateWithKey PHP Méthode

testMutateWithKey() public méthode

public testMutateWithKey ( )
    public function testMutateWithKey()
    {
        $this->connection->commit(Argument::that(function ($arg) {
            if (!isset($arg['mutations'][0]['delete'])) {
                return false;
            }
            if (!isset($arg['mutations'][0]['delete']['path'])) {
                return false;
            }
            return true;
        }))->willReturn('foo');
        $this->operation->setConnection($this->connection->reveal());
        $key = new Key('foo', ['path' => [['kind' => 'foo', 'id' => 1]]]);
        $mutation = $this->operation->mutation('delete', $key, Key::class);
        $this->operation->commit([$mutation]);
    }