diff options
author | Yaco <franco@reevo.org> | 2021-10-19 20:24:11 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2021-10-19 20:24:11 -0300 |
commit | e3880a1c86acaa3bbd05786ad2f5c586e6511a58 (patch) | |
tree | ec77bfc5b69f259a159c95188797bd0dade92357 /www/wiki/extensions/Maps/tests/Unit/MediaWiki/GeoJsonContentTest.php | |
parent | 20ca0685509f8010580d3b45036a64ab48616af1 (diff) |
updates Maps to 7.13.0
Diffstat (limited to 'www/wiki/extensions/Maps/tests/Unit/MediaWiki/GeoJsonContentTest.php')
-rw-r--r-- | www/wiki/extensions/Maps/tests/Unit/MediaWiki/GeoJsonContentTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/wiki/extensions/Maps/tests/Unit/MediaWiki/GeoJsonContentTest.php b/www/wiki/extensions/Maps/tests/Unit/MediaWiki/GeoJsonContentTest.php new file mode 100644 index 00000000..df2cc759 --- /dev/null +++ b/www/wiki/extensions/Maps/tests/Unit/MediaWiki/GeoJsonContentTest.php @@ -0,0 +1,22 @@ +<?php + +declare( strict_types = 1 ); + +namespace Maps\Tests\Unit\MediaWiki; + +use Maps\MediaWiki\Content\GeoJsonContent; +use PHPUnit\Framework\TestCase; + +class GeoJsonContentTest extends TestCase { + + public function testEmptyJsonIsNotValidContent() { + $this->assertFalse( ( new GeoJsonContent( '{}' ) )->isValid() ); + } + + public function testMinimalGeoJsonIsValid() { + $this->assertTrue( ( new GeoJsonContent( + '{"type": "FeatureCollection", "features": []}' + ) )->isValid() ); + } + +} |