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

testDefaultGcDoesNothing() public method

    public function testDefaultGcDoesNothing()
    {
        $this->datastore->transaction()->shouldBeCalledTimes(1)->willReturn($this->transaction->reveal());
        $this->datastore->query()->shouldNotBeCalled();
        $datastoreSessionHandler = new DatastoreSessionHandler($this->datastore->reveal());
        $datastoreSessionHandler->open(self::NAMESPACE_ID, self::KIND);
        $ret = $datastoreSessionHandler->gc(100);
        $this->assertEquals(true, $ret);
    }