Google\Cloud\Tests\Datastore\DatastoreSessionHandlerTest::testOpen PHP Method

testOpen() public method

public testOpen ( )
    public function testOpen()
    {
        $this->datastore->transaction()->shouldBeCalledTimes(1)->willReturn($this->transaction->reveal());
        $datastoreSessionHandler = new DatastoreSessionHandler($this->datastore->reveal());
        $ret = $datastoreSessionHandler->open(self::NAMESPACE_ID, self::KIND);
        $this->assertTrue($ret);
    }