From 5992e17d948ca71ca0b0a97a2e2cf9a252ca273a Mon Sep 17 00:00:00 2001 From: Patrick Barroca <pbarroca@afi-sa.fr> Date: Fri, 10 Mar 2023 08:16:29 +0000 Subject: [PATCH] hotline #171580 : fix typo in class name in Class_Batch_PortalBorrowersEmailing --- VERSIONS_HOTLINE/171580 | 1 + library/Class/Batch/PortalBorrowersEmailing.php | 4 ++-- .../PortalBorrowers/PortalBorrowersBatchTest.php | 13 +++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 VERSIONS_HOTLINE/171580 diff --git a/VERSIONS_HOTLINE/171580 b/VERSIONS_HOTLINE/171580 new file mode 100644 index 00000000000..5e855f9d4da --- /dev/null +++ b/VERSIONS_HOTLINE/171580 @@ -0,0 +1 @@ + - correctif #171580 : Batchs : Correction d'une erreur possible au lancement automatique des batchs \ No newline at end of file diff --git a/library/Class/Batch/PortalBorrowersEmailing.php b/library/Class/Batch/PortalBorrowersEmailing.php index eea5c9a76b6..dfbf1b95d99 100644 --- a/library/Class/Batch/PortalBorrowersEmailing.php +++ b/library/Class/Batch/PortalBorrowersEmailing.php @@ -23,11 +23,11 @@ class Class_Batch_PortalBorrowersEmailing extends Class_Batch_Abstract { const TYPE = 'PORTAL_BORROWERS_EMAILING'; - protected Class_AdminVar_Portalborrowers $_var; + protected Class_AdminVar_PortalBorrowers $_var; public function __construct() { - $this->_var = new Class_AdminVar_Portalborrowers; + $this->_var = new Class_AdminVar_PortalBorrowers; } diff --git a/tests/scenarios/PortalBorrowers/PortalBorrowersBatchTest.php b/tests/scenarios/PortalBorrowers/PortalBorrowersBatchTest.php index 38c2a04e5ea..a8706d35a25 100644 --- a/tests/scenarios/PortalBorrowers/PortalBorrowersBatchTest.php +++ b/tests/scenarios/PortalBorrowers/PortalBorrowersBatchTest.php @@ -449,3 +449,16 @@ class PortalBorrowersBatchMondayTest extends PortalBorrowersBatchPickWeekTestCas $this->assertNotXPathContentContains('//table[@id="batches"]//td', 'Une fois par semaine'); } } + + + + +/** + * @see https://forge.afi-sa.net/issues/171580 + */ +class PortalBorrowersNotLoadingTest extends PHPUnit_Framework_TestCase { + /** @test */ + public function batchShouldBeDirectlyLoadable() { + $this->assertNotNull(new Class_Batch_PortalBorrowersEmailing); + } +} -- GitLab