Skip to content

Commit

Permalink
Fix return type and test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jun 19, 2023
1 parent 433b5d6 commit f7cc727
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Drivers/MaxMind.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Illuminate\Support\Fluent;
use Illuminate\Support\Str;
use PharData;
use PharFileInfo;
use Stevebauman\Location\Position;
use Stevebauman\Location\Requestable;

Expand Down Expand Up @@ -59,7 +60,7 @@ public function update(Command $command): void
*
* @throws Exception
*/
protected function discoverDatabaseFile(PharData $archive): FilesystemIterator
protected function discoverDatabaseFile(PharData $archive): PharFileInfo
{
/** @var \FilesystemIterator $file */
foreach ($archive as $file) {
Expand Down
7 changes: 6 additions & 1 deletion tests/MaxMindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@

use Illuminate\Support\Fluent;
use Mockery as m;
use Stevebauman\Location\Commands\Update;
use Stevebauman\Location\Drivers\MaxMind;
use Stevebauman\Location\Facades\Location;
use Stevebauman\Location\Position;

it('it can process fluent response', function () {
it('can update database', function () {
$this->artisan(Update::class)->assertSuccessful();
});

it('can process fluent response', function () {
$driver = m::mock(MaxMind::class);

$attributes = [
Expand Down

0 comments on commit f7cc727

Please sign in to comment.