File tree Expand file tree Collapse file tree
GaletteHelloasso/tests/units Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989 - name : CS
9090 run : |
9191 cd galette-core/galette/plugins/plugin-helloasso
92- ../../vendor/bin/phpcs lib/ ./*.php
92+ ../../vendor/bin/phpcs lib/ tests/ ./*.php
9393
9494 - name : CS Fixer
9595 if : matrix.php-is-min
Original file line number Diff line number Diff line change 44 ->in ([
55 __DIR__ . '/lib ' ,
66 __DIR__ . '/tests ' ,
7+ __DIR__ . '/tests ' ,
78 ])
89;
910
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ parameters:
44 level : 6
55 paths :
66 - lib/
7+ - tests/
78 scanFiles :
89 - _config.inc.php
910 - ../../includes/sys_config/paths.inc.php
Original file line number Diff line number Diff line change 66 * SPDX-License-Identifier: GPL-3.0-or-later
77 */
88
9+ declare (strict_types=1 );
10+
911namespace GaletteHelloasso \tests \units ;
1012
1113use Galette \Tests \GaletteTestCase ;
Original file line number Diff line number Diff line change 66 * SPDX-License-Identifier: GPL-3.0-or-later
77 */
88
9+ declare (strict_types=1 );
10+
911/**
1012 * Bootstrap tests file for Galette Helloasso plugin
1113 *
1214 * @author Johan Cwiklinski <johan@x-tnd.be>
1315 */
1416
1517define ('GALETTE_PLUGINS_PATH ' , __DIR__ . '/../../ ' );
16- $ basepath = ' ../../../galette/ ' ;
18+ $ basepath = __DIR__ . ' / ../../../' ; // phpcs:ignore SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable -- used from Core testBootstrap
1719
18- include_once ' ../../../tests/TestsBootstrap.php ' ;
20+ include_once __DIR__ . ' /../ ../../../tests/TestsBootstrap.php ' ;
1921require_once __DIR__ . '/../_config.inc.php ' ;
You can’t perform that action at this time.
0 commit comments