Skip to content

Commit

Permalink
chore: update data
Browse files Browse the repository at this point in the history
  • Loading branch information
lakuapik committed Jul 15, 2023
1 parent 692c58c commit 2ebb4ce
Show file tree
Hide file tree
Showing 43 changed files with 37 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ vendor/
.php-cs-fixer.cache
.phpunit.result.cache
composer.lock
testing.sh
testing.sh
.DS_Store
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to `laravel-indonesia` will be documented in this file.

## [v2.0.2](https://github.com/kodepandai/laravel-indonesia/compare/v2.0.1...v2.0.2) - 15 Jul 2023

### Added
- Sync data with upstream
- https://github.com/laravolt/indonesia/commit/9caeec616c48af4a46010c3090e25d52ff7c8a6b

## [v2.0.1](https://github.com/kodepandai/laravel-indonesia/compare/v2.0.0...v2.0.1) - 9 Mar 2022

### Added
- Support for laravel 10
- Sync data with upstream

## [v2.0.0](https://github.com/kodepandai/laravel-indonesia/compare/v1.0.3...v2.0.0) - 2 Jan 2022

### Added
Expand Down
Binary file modified database.sqlite
Binary file not shown.
Binary file modified database/raw/cities.csv.gz
Binary file not shown.
Binary file modified database/raw/districts.csv.gz
Binary file not shown.
Binary file modified database/raw/provinces.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/11.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/12.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/13.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/14.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/15.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/16.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/17.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/18.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/19.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/21.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/31.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/32.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/33.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/34.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/35.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/36.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/51.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/52.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/53.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/61.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/62.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/63.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/64.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/65.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/71.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/72.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/73.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/74.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/75.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/76.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/81.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/82.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/91.csv.gz
Binary file not shown.
Binary file modified database/raw/villages/92.csv.gz
Binary file not shown.
33 changes: 12 additions & 21 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage/>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
12 changes: 10 additions & 2 deletions tests/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
expect($district->name)->toBe('BAKONGAN TIMUR');
expect($district->latitude)->toBe('NULL');
expect($district->longitude)->toBe('NULL');

$district = District::find(911823);
expect($district->code)->toBe(911823);
expect($district->name)->toBe('KOROWAY BULUANOP');
Expand All @@ -181,10 +181,18 @@
expect($village->name)->toBe('PATUMBAK I');
expect($village->latitude)->toBe('NULL');
expect($village->longitude)->toBe('NULL');

$village = Village::find(9201502009);
expect($village->code)->toBe(9201502009);
expect($village->name)->toBe('MLARON');
expect($village->latitude)->toBe('NULL');
expect($village->longitude)->toBe('NULL');
});

it('can test new data for v2.0.2', function () {
$district = District::find(331710);
expect($district->code)->toBe(331710);
expect($district->name)->toBe('REMBANG');
expect($district->latitude)->toBe('-6.7147586');
expect($district->longitude)->toBe('111.3281411');
});
1 change: 1 addition & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class TestCase extends \Orchestra\Testbench\TestCase
// Artisan::call('db:seed', [
// 'class' => \KodePandai\Indonesia\IndonesiaDatabaseSeeder::class,
// ]);
// die(0); // disable DatabaseTransaction first
// }

/**
Expand Down

0 comments on commit 2ebb4ce

Please sign in to comment.