Stevebauman\Location\Tests\LocationTest::test_free_geo_ip PHP Method

test_free_geo_ip() public method

public test_free_geo_ip ( )
    public function test_free_geo_ip()
    {
        $driver = m::mock(FreeGeoIp::class)->makePartial();
        $driver->shouldAllowMockingProtectedMethods()->shouldReceive('process')->once()->andReturn(new Fluent());
        Location::setDriver($driver);
        $this->assertInstanceOf(Position::class, Location::get());
    }