diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 1c4446d..9b2694b 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -109,9 +109,11 @@ jobs: - name: Headers checks run: | - cd galette-core/galette/plugins/plugin-auto - ../../vendor/bin/docheader --docheader=../../../.docheader check lib ./*.php - + cd galette-core + ./bin/console galette:headers:check \ + --project-name="Galette Auto plugin" \ + --start-year="2009" \ + --directory="galette/plugins/plugin-auto" unit-tests: runs-on: ubuntu-latest diff --git a/_config.inc.php b/_config.inc.php index 87e2ded..36bf760 100644 --- a/_config.inc.php +++ b/_config.inc.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/_define.php b/_define.php index b49112a..b7b8260 100644 --- a/_define.php +++ b/_define.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); @@ -71,5 +58,6 @@ 'removeProperty' => 'staff', 'removeProperties' => 'staff', 'doRemoveProperty' => 'staff' - ] + ], + dbver: 1.00 ); diff --git a/_routes.php b/_routes.php index 077b5e6..9823e50 100644 --- a/_routes.php +++ b/_routes.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/bin/release b/bin/release index 268db5e..b059982 100755 --- a/bin/release +++ b/bin/release @@ -1,5 +1,11 @@ #!/usr/bin/python +# +# This file is part of Galette Auto plugin (https://galette.eu). +# SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team +# SPDX-License-Identifier: GPL-3.0-or-later +# + import os, sys, argparse, re, git, http.client, subprocess import urlgrabber.progress, tarfile, shutil, gitdb, time, fnmatch from datetime import datetime diff --git a/bin/twig-cache b/bin/twig-cache index 73c9a6e..5ee3b80 100755 --- a/bin/twig-cache +++ b/bin/twig-cache @@ -1,6 +1,12 @@ #!/bin/php . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Auto.php b/lib/GaletteAuto/Auto.php index 5799229..98b5204 100644 --- a/lib/GaletteAuto/Auto.php +++ b/lib/GaletteAuto/Auto.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Autos.php b/lib/GaletteAuto/Autos.php index c4224db..73acdbb 100644 --- a/lib/GaletteAuto/Autos.php +++ b/lib/GaletteAuto/Autos.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Body.php b/lib/GaletteAuto/Body.php index ea4a95e..d943504 100644 --- a/lib/GaletteAuto/Body.php +++ b/lib/GaletteAuto/Body.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Brand.php b/lib/GaletteAuto/Brand.php index 28987a4..ea5caff 100644 --- a/lib/GaletteAuto/Brand.php +++ b/lib/GaletteAuto/Brand.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Color.php b/lib/GaletteAuto/Color.php index f54fe48..fe68489 100644 --- a/lib/GaletteAuto/Color.php +++ b/lib/GaletteAuto/Color.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Controllers/Controller.php b/lib/GaletteAuto/Controllers/Controller.php index d507043..1c525cd 100644 --- a/lib/GaletteAuto/Controllers/Controller.php +++ b/lib/GaletteAuto/Controllers/Controller.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Controllers/Crud/ModelsController.php b/lib/GaletteAuto/Controllers/Crud/ModelsController.php index c996520..d817ff0 100644 --- a/lib/GaletteAuto/Controllers/Crud/ModelsController.php +++ b/lib/GaletteAuto/Controllers/Crud/ModelsController.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Controllers/Crud/PropertiesController.php b/lib/GaletteAuto/Controllers/Crud/PropertiesController.php index 7acedc8..dcd64fc 100644 --- a/lib/GaletteAuto/Controllers/Crud/PropertiesController.php +++ b/lib/GaletteAuto/Controllers/Crud/PropertiesController.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Filters/AutosList.php b/lib/GaletteAuto/Filters/AutosList.php index 46fec9d..8d70317 100644 --- a/lib/GaletteAuto/Filters/AutosList.php +++ b/lib/GaletteAuto/Filters/AutosList.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Filters/ModelsList.php b/lib/GaletteAuto/Filters/ModelsList.php index 7ca4997..73da097 100644 --- a/lib/GaletteAuto/Filters/ModelsList.php +++ b/lib/GaletteAuto/Filters/ModelsList.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Filters/PropertiesList.php b/lib/GaletteAuto/Filters/PropertiesList.php index 6f54bd0..1652c52 100644 --- a/lib/GaletteAuto/Filters/PropertiesList.php +++ b/lib/GaletteAuto/Filters/PropertiesList.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Finition.php b/lib/GaletteAuto/Finition.php index 052a91c..20e8262 100644 --- a/lib/GaletteAuto/Finition.php +++ b/lib/GaletteAuto/Finition.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/History.php b/lib/GaletteAuto/History.php index 209e5f8..3227a4d 100644 --- a/lib/GaletteAuto/History.php +++ b/lib/GaletteAuto/History.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Model.php b/lib/GaletteAuto/Model.php index 4dc12f2..5706783 100644 --- a/lib/GaletteAuto/Model.php +++ b/lib/GaletteAuto/Model.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Picture.php b/lib/GaletteAuto/Picture.php index df7b420..c3a8f77 100644 --- a/lib/GaletteAuto/Picture.php +++ b/lib/GaletteAuto/Picture.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/PluginGaletteAuto.php b/lib/GaletteAuto/PluginGaletteAuto.php index 538dbbe..0902e41 100644 --- a/lib/GaletteAuto/PluginGaletteAuto.php +++ b/lib/GaletteAuto/PluginGaletteAuto.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Repository/Models.php b/lib/GaletteAuto/Repository/Models.php index acfce24..421efd5 100644 --- a/lib/GaletteAuto/Repository/Models.php +++ b/lib/GaletteAuto/Repository/Models.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/State.php b/lib/GaletteAuto/State.php index a724c18..eee234e 100644 --- a/lib/GaletteAuto/State.php +++ b/lib/GaletteAuto/State.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/lib/GaletteAuto/Transmission.php b/lib/GaletteAuto/Transmission.php index 84674c0..b795f07 100644 --- a/lib/GaletteAuto/Transmission.php +++ b/lib/GaletteAuto/Transmission.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ declare(strict_types=1); diff --git a/scripts/mysql.sql b/scripts/mysql.sql index 3e25893..3b68ec9 100644 --- a/scripts/mysql.sql +++ b/scripts/mysql.sql @@ -1,3 +1,9 @@ +-- +-- This file is part of Galette Auto plugin (https://galette.eu). +-- SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team +-- SPDX-License-Identifier: GPL-3.0-or-later +-- + SET FOREIGN_KEY_CHECKS=0; -- Table structure for table galette_auto_bodies diff --git a/scripts/pgsql.sql b/scripts/pgsql.sql index 10b3cb8..40245cf 100644 --- a/scripts/pgsql.sql +++ b/scripts/pgsql.sql @@ -1,3 +1,9 @@ +-- +-- This file is part of Galette Auto plugin (https://galette.eu). +-- SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team +-- SPDX-License-Identifier: GPL-3.0-or-later +-- + DROP SEQUENCE IF EXISTS galette_auto_bodies_id_seq; CREATE SEQUENCE galette_auto_bodies_id_seq START 1 diff --git a/templates/default/history.html.twig b/templates/default/history.html.twig index cb89635..acf5270 100644 --- a/templates/default/history.html.twig +++ b/templates/default/history.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends (mode == 'ajax') ? "ajax.html.twig" : "page.html.twig" %} {% block content %} diff --git a/templates/default/model.html.twig b/templates/default/model.html.twig index e2378e3..367baf4 100644 --- a/templates/default/model.html.twig +++ b/templates/default/model.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'page.html.twig' %} {% block content %} diff --git a/templates/default/models_list.html.twig b/templates/default/models_list.html.twig index 03ef471..0023903 100644 --- a/templates/default/models_list.html.twig +++ b/templates/default/models_list.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'elements/list.html.twig' %} {% set nb = count_models %} diff --git a/templates/default/object.html.twig b/templates/default/object.html.twig index 3b000ea..287964e 100644 --- a/templates/default/object.html.twig +++ b/templates/default/object.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'page.html.twig' %} {% block content %} diff --git a/templates/default/object_list.html.twig b/templates/default/object_list.html.twig index 2b0f105..cd494d5 100644 --- a/templates/default/object_list.html.twig +++ b/templates/default/object_list.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'elements/list.html.twig' %} {% set name = obj.name %} diff --git a/templates/default/object_show.html.twig b/templates/default/object_show.html.twig index 66eca2a..a4a0aea 100644 --- a/templates/default/object_show.html.twig +++ b/templates/default/object_show.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'page.html.twig' %} {% block content %} diff --git a/templates/default/public_vehicles_list.html.twig b/templates/default/public_vehicles_list.html.twig index b46d3a8..21eeae4 100644 --- a/templates/default/public_vehicles_list.html.twig +++ b/templates/default/public_vehicles_list.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'elements/list.html.twig' %} {% set nb = autos|length %} diff --git a/templates/default/vehicles.html.twig b/templates/default/vehicles.html.twig index 7c6cd90..98feb77 100644 --- a/templates/default/vehicles.html.twig +++ b/templates/default/vehicles.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'page.html.twig' %} {% block content %} diff --git a/templates/default/vehicles_list.html.twig b/templates/default/vehicles_list.html.twig index 47b41a3..3e0daad 100644 --- a/templates/default/vehicles_list.html.twig +++ b/templates/default/vehicles_list.html.twig @@ -1,23 +1,9 @@ {# -/** - * Copyright © 2003-2024 The Galette Team - * - * This file is part of Galette (https://galette.eu). - * - * Galette is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Galette is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Galette. If not, see . - */ -#} + # This file is part of Galette Auto plugin (https://galette.eu). + # SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + # SPDX-License-Identifier: GPL-3.0-or-later + #} + {% extends 'elements/list.html.twig' %} {% import "macros.twig" as macros %} diff --git a/tests/GaletteAuto/tests/units/Auto.php b/tests/GaletteAuto/tests/units/Auto.php index 40675d2..8ceb283 100644 --- a/tests/GaletteAuto/tests/units/Auto.php +++ b/tests/GaletteAuto/tests/units/Auto.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; diff --git a/tests/GaletteAuto/tests/units/Body.php b/tests/GaletteAuto/tests/units/Body.php index 41acf5a..bcfcbc5 100644 --- a/tests/GaletteAuto/tests/units/Body.php +++ b/tests/GaletteAuto/tests/units/Body.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; @@ -41,7 +28,7 @@ public function testEmpty(): void $this->assertSame('Body', $body->getFieldLabel()); $this->assertCount(0, $body->getList()); - $this->assertSame('0 body', $body->displayCount()); + $this->assertSame('0 bodies', $body->displayCount()); } /** diff --git a/tests/GaletteAuto/tests/units/Brand.php b/tests/GaletteAuto/tests/units/Brand.php index 61ea4d9..ef8829d 100644 --- a/tests/GaletteAuto/tests/units/Brand.php +++ b/tests/GaletteAuto/tests/units/Brand.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; @@ -41,7 +28,7 @@ public function testEmpty(): void $this->assertSame('Brand', $brand->getFieldLabel()); $this->assertCount(0, $brand->getList()); - $this->assertSame('0 brand', $brand->displayCount()); + $this->assertSame('0 brands', $brand->displayCount()); } /** diff --git a/tests/GaletteAuto/tests/units/Color.php b/tests/GaletteAuto/tests/units/Color.php index 6a28d7d..475cc76 100644 --- a/tests/GaletteAuto/tests/units/Color.php +++ b/tests/GaletteAuto/tests/units/Color.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; @@ -41,7 +28,7 @@ public function testEmpty(): void $this->assertSame('Color', $color->getFieldLabel()); $this->assertCount(0, $color->getList()); - $this->assertSame('0 color', $color->displayCount()); + $this->assertSame('0 colors', $color->displayCount()); } /** diff --git a/tests/GaletteAuto/tests/units/Finition.php b/tests/GaletteAuto/tests/units/Finition.php index b171ac1..0c24479 100644 --- a/tests/GaletteAuto/tests/units/Finition.php +++ b/tests/GaletteAuto/tests/units/Finition.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; @@ -41,7 +28,7 @@ public function testEmpty(): void $this->assertSame('Finition', $finition->getFieldLabel()); $this->assertCount(0, $finition->getList()); - $this->assertSame('0 finition', $finition->displayCount()); + $this->assertSame('0 finitions', $finition->displayCount()); } /** diff --git a/tests/GaletteAuto/tests/units/History.php b/tests/GaletteAuto/tests/units/History.php index a338da7..05d6367 100644 --- a/tests/GaletteAuto/tests/units/History.php +++ b/tests/GaletteAuto/tests/units/History.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; diff --git a/tests/GaletteAuto/tests/units/Model.php b/tests/GaletteAuto/tests/units/Model.php index d323764..f35fe48 100644 --- a/tests/GaletteAuto/tests/units/Model.php +++ b/tests/GaletteAuto/tests/units/Model.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; diff --git a/tests/GaletteAuto/tests/units/State.php b/tests/GaletteAuto/tests/units/State.php index b83b8c9..43e86f7 100644 --- a/tests/GaletteAuto/tests/units/State.php +++ b/tests/GaletteAuto/tests/units/State.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; @@ -41,7 +28,7 @@ public function testEmpty(): void $this->assertSame('State', $state->getFieldLabel()); $this->assertCount(0, $state->getList()); - $this->assertSame('0 state', $state->displayCount()); + $this->assertSame('0 states', $state->displayCount()); } /** diff --git a/tests/GaletteAuto/tests/units/Transmission.php b/tests/GaletteAuto/tests/units/Transmission.php index 414169c..8f25b3b 100644 --- a/tests/GaletteAuto/tests/units/Transmission.php +++ b/tests/GaletteAuto/tests/units/Transmission.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ namespace GaletteAuto\tests\units; @@ -41,7 +28,7 @@ public function testEmpty(): void $this->assertSame('Transmission', $transmission->getFieldLabel()); $this->assertCount(0, $transmission->getList()); - $this->assertSame('0 transmission', $transmission->displayCount()); + $this->assertSame('0 transmissions', $transmission->displayCount()); } /** diff --git a/tests/TestsBootstrap.php b/tests/TestsBootstrap.php index d844ec3..6e52504 100644 --- a/tests/TestsBootstrap.php +++ b/tests/TestsBootstrap.php @@ -1,22 +1,9 @@ . + * This file is part of Galette Auto plugin (https://galette.eu). + * SPDX-FileCopyrightText: Copyright © 2009-2026 The Galette Team + * SPDX-License-Identifier: GPL-3.0-or-later */ /**