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

test_geo_plugin() public method

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