Maximilian Krög
61b4f6739d
Don't abuse name attribute of svg elements
...
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2024-11-28 09:49:39 -03:00
Maurício Meneghini Fauth
555ea56cbd
Make PHPUnit's assertions stricter
...
Backports #18993 to QA_5_2.
This makes merging QA_5_2 into master easier.
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-10-12 15:33:45 -03:00
Maurício Meneghini Fauth
7fc96d6621
Call PHPUnit static methods using static calls
...
Backports #18907 to QA_5_2.
This makes merging QA_5_2 into master easier.
Changes done using Rector.
- #18907
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-10-12 14:28:22 -03:00
Maurício Meneghini Fauth
46f2c8871c
Backport some fixes for PHPUnit 10 compatibility
...
- Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070623
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-08-13 20:13:18 -03:00
Maximilian Krög
1df32b32e0
Backport two test methods for phpunit 8.5
...
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2023-09-09 17:44:13 +02:00
Maximilian Krög
b04ea44362
Fix error when switching geom type in geometry collection
...
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2023-08-26 22:26:02 +02:00
Maximilian Krög
c5343eeed9
Fix gis extent calculation
...
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2023-03-29 21:14:40 -03:00
Maximilian Krög
a90cff2f7f
Fix centering of gis plot
...
When the ratio in one or both dimensions is zero (all points at the same
width or height) place it in the center.
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2022-12-10 22:26:42 +01:00
Maximilian Krög
ed9c607f01
Fix centering of gis data in plot
...
The image was not centered because the border (either x or y) was
not included in the calculation
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2022-12-10 21:18:40 +01:00
Maurício Meneghini Fauth
2653b2942b
Merge branch 'QA_5_1' into QA_5_2
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2022-03-11 13:02:15 -03:00
William Desportes
0c4b5051c0
Cover one case of GisVisualization class - #17188
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-03-05 22:47:51 +01:00
William Desportes
2861579e25
Cover more cases of GisVisualization class
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2022-03-05 22:43:47 +01:00
Maurício Meneghini Fauth
44fe103b9c
Remove @access annotations
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-12-22 11:43:45 -03:00
Maurício Meneghini Fauth
d49c243469
Use @requires annotation for required extensions
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-10-07 13:40:50 -03:00
Maurício Meneghini Fauth
3e0856c77b
Remove useless string concatenations
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-27 21:40:22 -03:00
Maurício Meneghini Fauth
e96b75bb92
Replace class strings with the ::class constant
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-27 19:17:45 -03:00
Maurício Meneghini Fauth
f00d70cccb
Remove useless whitespaces
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-15 17:05:40 -03:00
Maurício Meneghini Fauth
c499dd18e5
Wrap GD functions with the ImageWrapper class
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-06 19:27:59 -03:00
Maurício Meneghini Fauth
04d3c83559
Fix some errors found by PHPStan/Psalm
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-05 16:09:08 -03:00
William Desportes
3a87667cab
Merge branch 'QA_5_1'
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-20 17:52:16 +02:00
Maximilian Krög
c1c6b01195
Use correct min MySQL version for axis-order (8.0.1)
...
There was no version 8.0.10
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2021-07-20 01:28:29 +02:00
Maurício Meneghini Fauth
21431578db
Fix some errors found by PHPStan and Psalm
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-24 18:03:14 -03:00
Maurício Meneghini Fauth
f3b79d83c0
Add PHPUnit's Covers annotation on test classes
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-04 23:39:26 -03:00
Maurício Meneghini Fauth
f63d21b65b
Remove some constant definition from test/bootstrap-dist.php
...
Fix some failing tests.
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-04 00:18:09 -03:00
Maurício Meneghini Fauth
3f9265b48f
Fix tests when running them in separated PHP processes
...
vendor/bin/phpunit --process-isolation
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-03 23:15:17 -03:00
William Desportes
c51af5a003
Fix phpstan reported errors
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-28 23:48:27 +02:00
Maurício Meneghini Fauth
90778eecf7
Upgrade phpmyadmin/coding-standard to 3.0.0
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-04-19 02:20:46 -03:00
Maurício Meneghini Fauth
a7d6df17d6
Remove warnings from PHPUnit
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-04-09 13:28:47 -03:00
Maurício Meneghini Fauth
0b8edc5bde
Use PSR-12 for namespace use statements
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-03-05 14:18:35 -03:00
William Desportes
b5b62274f8
Add a test for #16706
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-03-04 17:50:44 +01:00
Saksham Gupta
c24b8d1111
Fix Openlayer bug ( #16390 )
...
* Fix Openlayer bug
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
2020-10-15 12:02:58 -03:00
Maurício Meneghini Fauth
db3da81056
Remove some useless comments
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-10-13 19:56:56 -03:00
Saksham Gupta
e1461d847c
Upgrade OpenLayers ( #16303 )
...
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
2020-09-04 13:19:00 -03:00
Maurício Meneghini Fauth
ba09c84a05
Fix PHPStan errors for PHPUnit assert methods
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-08-10 16:20:53 -03:00
Maurício Meneghini Fauth
2358b9c4f9
Fix missing property type hints
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-07-22 21:42:22 -03:00
William Desportes
e78eb340bc
Some code improvements and fixes related to issue reported by Scrutinizer
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-07-18 10:29:15 +02:00
William Desportes
0340f66740
Fix some tests having wrong typehints
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-07-17 23:55:49 +02:00
William Desportes
a80153a633
Add typehints using phpcbf on test/*
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-07-17 22:52:42 +02:00
Maurício Meneghini Fauth
47f0960dce
Add return type declaration to test methods
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-07-07 11:31:33 -03:00
William Desportes
e89b02c08d
Merge branch 'QA_5_0'
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-06-24 09:07:17 +02:00
William Desportes
40d01944a3
Fix #16088 - Do not add axis switch on MariaDB
...
Ref: 969f43c82b
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-06-22 21:56:56 +02:00
charliewindred
7d792e88f6
Removed underscores from unit test methods
...
Removed underscore prefixes from unit test method calls.
Signed-off-by: charliewindred <charliewindred@gmail.com>
2020-06-02 23:52:32 +02:00
charliewindred
ca3c5e17b0
Remove underscore prefix from method names
...
Removed underscore from method names for PSR-12 compliance.
Signed-off-by: charliewindred <charliewindred@gmail.com>
2020-06-02 16:44:16 +01:00
Maurício Meneghini Fauth
3ae05c785d
Use short list syntax and single line arrays
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-05-26 03:32:59 -03:00
Maurício Meneghini Fauth
3baad2eb1c
Fix some coding standard issues
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-05-25 22:42:37 -03:00
Maurício Meneghini Fauth
9269d75fb4
Fix some coding standard issues
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-05-25 20:22:18 -03:00
William Desportes
7e81b0b3d7
Merge callProtectedMethod and callPrivateFunction into callFunction
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-05-21 22:59:29 +02:00
William Desportes
5c270d863d
Move callProtectedFunction to abstract class
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-05-21 21:58:41 +02:00
William Desportes
6eaa55e805
Call parent's setUp and tearDown
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-05-20 21:31:13 +02:00
William Desportes
8ef5143901
Use AbstractTestCase on all unit tests
...
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-05-20 21:15:06 +02:00