Skip to content

Commit

Permalink
CI - update tests and dev.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMellerin committed Nov 27, 2023
1 parent 7395119 commit 1ac1cc4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ do_test_mariadb11() {
}

do_test_mysql() {
do_test_mysql57
do_test_mysql80
do_test_mariadb11
do_test_mysql57 $@
do_test_mysql80 $@
do_test_mariadb11 $@
}

do_test_postgresql10() {
Expand Down Expand Up @@ -131,8 +131,8 @@ do_test_postgresql16() {
}

do_test_postgresql() {
do_test_postgresql10
do_test_postgresql16
do_test_postgresql10 $@
do_test_postgresql16 $@
}

do_test_sqlsrv2019() {
Expand All @@ -151,7 +151,7 @@ do_test_sqlsrv2019() {
}

do_test_sqlsrv() {
do_test_sqlsrv2019
do_test_sqlsrv2019 $@
}

# SQLite version depends upon the PHP embeded version or linked
Expand All @@ -173,12 +173,12 @@ do_test_all() {

# @todo Temporary deactivated MySQL 5.7 due to a bug.
# do_test_mysql57
do_test_mysql80
do_test_mariadb11
do_test_postgresql10
do_test_postgresql16
do_test_sqlsrv2019
do_test_sqlite
do_test_mysql80 $@
do_test_mariadb11 $@
do_test_postgresql10 $@
do_test_postgresql16 $@
do_test_sqlsrv2019 $@
do_test_sqlite $@
}

do_test_notice() {
Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/Anonymizer/FrFR/AddressAnonymizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function createTestData(): void
'my_street_address' => 'Rue Jean Jaures',
'my_secondary_address' => 'Au dernier étage',
'my_postal_code' => '44000',
'my_locality' => 'Nantes',
'my_locality' => 'Toto-les-bains',
'my_region' => 'Pays de loire',
'my_country' => 'FRANCE',
],
Expand Down Expand Up @@ -95,7 +95,7 @@ public function testAnonymize(): void
$this->assertNotSame('Rue Jean Jaures', $datas[1]['my_street_address']);
$this->assertNotSame('Au dernier étage', $datas[1]['my_secondary_address']);
$this->assertNotSame('44000', $datas[1]['my_postal_code']);
$this->assertNotSame('Nantes', $datas[1]['my_locality']);
$this->assertNotSame('Toto-les-bains', $datas[1]['my_locality']);
$this->assertNotSame('Pays de loire', $datas[1]['my_region']);
/*
$this->assertNull($datas[2]['my_street_address']);
Expand Down

0 comments on commit 1ac1cc4

Please sign in to comment.