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

testKeyWithNamespaceId() public method

    public function testKeyWithNamespaceId()
    {
        $op = new Operation($this->connection->reveal(), 'foo', 'namespace', $this->mapper);
        $key = $op->key('Person', 'Bob');
        $obj = $key->keyObject();
        $this->assertEquals('namespace', $obj['partitionId']['namespaceId']);
    }