diff --git a/VERSIONS_HOTLINE/95858 b/VERSIONS_HOTLINE/95858 new file mode 100644 index 0000000000000000000000000000000000000000..122ea52e9d024466f58d5a09053b517773a11fec --- /dev/null +++ b/VERSIONS_HOTLINE/95858 @@ -0,0 +1 @@ + - ticket #95858 : Profil Smartphone : Correction de pictogramme sur le bouton suppression de réservation \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/Telephone/Abonne/Holds.php b/library/ZendAfi/View/Helper/Telephone/Abonne/Holds.php index 7eedb7ccbdb030bfc6d76e36d6b9956cb8d310a9..0ec09913d9c699323175c9db1f320d795b9bcb23 100644 --- a/library/ZendAfi/View/Helper/Telephone/Abonne/Holds.php +++ b/library/ZendAfi/View/Helper/Telephone/Abonne/Holds.php @@ -48,4 +48,8 @@ class ZendAfi_View_Helper_Telephone_Abonne_Holds extends ZendAfi_View_Helper_Tel } + + protected function _getOperationClass() { + return 'delete'; + } } \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/Telephone/Abonne/Loans.php b/library/ZendAfi/View/Helper/Telephone/Abonne/Loans.php index c3cfdba70ed327b3fbcaf40fdae9896060c6d307..fa55e7d18f402017b66a78454f70e1bae96410f4 100644 --- a/library/ZendAfi/View/Helper/Telephone/Abonne/Loans.php +++ b/library/ZendAfi/View/Helper/Telephone/Abonne/Loans.php @@ -50,4 +50,9 @@ class ZendAfi_View_Helper_Telephone_Abonne_Loans extends ZendAfi_View_Helper_Tel $this->_('Prolonger')) : ''; } + + + protected function _getOperationClass() { + return 'forward'; + } } \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/Telephone/Abonne/Operations.php b/library/ZendAfi/View/Helper/Telephone/Abonne/Operations.php index 90f6b78cc4a5f4575d5529c093eee7215f2b0cf6..240316cc032f9412d74ff16668f0f74a0651ef94 100644 --- a/library/ZendAfi/View/Helper/Telephone/Abonne/Operations.php +++ b/library/ZendAfi/View/Helper/Telephone/Abonne/Operations.php @@ -31,7 +31,7 @@ class ZendAfi_View_Helper_Telephone_Abonne_Operations extends ZendAfi_View_Helpe return $this->_tag('ul', $this->_renderTitle() . $this->_renderOperations(), ['data-role' => 'listview', - 'data-split-icon' => 'forward']); + 'data-split-icon' => $this->_getOperationClass()]); } diff --git a/tests/application/modules/telephone/controllers/AbonneControllerTest.php b/tests/application/modules/telephone/controllers/AbonneControllerTest.php index ea3a4e26b70460df8ce5610b47f6198707d383c7..5701a5407e4940aa20ae040aa9c60c95b64b7ff8 100644 --- a/tests/application/modules/telephone/controllers/AbonneControllerTest.php +++ b/tests/application/modules/telephone/controllers/AbonneControllerTest.php @@ -155,7 +155,7 @@ class AbonneControllerTelephoneFicheTest extends AbonneControllerTelephoneTestCa /** @test */ - public function contextShouldExpectation() { + public function ficheAbonneShouldContainCancelHoldLink() { $this->assertXPath('//a[contains(@href, "cancel-hold/id/666_123")]'); } @@ -170,6 +170,18 @@ class AbonneControllerTelephoneFicheTest extends AbonneControllerTelephoneTestCa public function pageShouldDisplayLintToIndex() { $this->assertXPath('//a[@href = "/index/index/id_profil/2"]'); } + + + /** @test */ + public function prolongerPretIconShouldBeForward() { + $this->assertXPath('//ul[@data-split-icon="forward"]//a[contains(@href,"abonne/prolongerpret")]'); + } + + + /** @test */ + public function supprimerReservationIconShouldBeDelete() { + $this->assertXPath('//ul[@data-split-icon="delete"]//a[contains(@href,"abonne/cancel-hold")]'); + } }