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

test_max_mind() public method

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