Skip to content
Snippets Groups Projects
Commit 40d1392f authored by Alex Arnaud's avatar Alex Arnaud
Browse files

hotline#180160 : Restore PNB genre and section form elements in

pnb/usage page
parent fe169f6b
Branches
Tags
No related merge requests found
Pipeline #24021 passed with stage
in 25 minutes and 24 seconds
......@@ -115,7 +115,7 @@ abstract class Class_Album_UsageReport_SearchCriteria_SelectElement extends Clas
class Class_Album_UsageReport_SearchCriteria_Genre extends Class_Album_UsageReport_SearchCriteria_SelectElement {
protected
$_checkbox_name = ZendAfi_View_Helper_TagListeCoches::SOURCE_GENRE_PNB,
$_name = 'genres';
$_name = 'genre_pnb';
protected function _getElement($id) {
return Class_CodifGenre::find($id);
......@@ -138,7 +138,7 @@ class Class_Album_UsageReport_SearchCriteria_Genre extends Class_Album_UsageRepo
class Class_Album_UsageReport_SearchCriteria_Section extends Class_Album_UsageReport_SearchCriteria_SelectElement {
protected
$_checkbox_name = ZendAfi_View_Helper_TagListeCoches::SOURCE_SECTION_PNB,
$_name = 'sections';
$_name = 'section_pnb';
protected function _getElement($id) {
return Class_CodifSection::find($id);
......
......@@ -438,6 +438,8 @@ class PnbDilicomAdminUsageTest extends PnbDilicomAdminTestCase {
public function setUp() {
parent::setUp();
Class_AdminVar::set('DILICOM_PNB_BOARD_DISPLAY_SECTION', true);
(new Class_Batch_DilicomJobGenerateUsageReport(new Class_Batch_Dilicom))
->setLogger($this->getLogger())
->run();
......@@ -452,6 +454,17 @@ class PnbDilicomAdminUsageTest extends PnbDilicomAdminTestCase {
}
/** @test */
public function inputSearchGenreShouldBePresent() {
$this->assertXPath( '//div[@id="search_genre_pnb_aff"]');
}
/** @test */
public function inputSearchSectionShouldBePresent() {
$this->assertXPath( '//div[@id="search_section_pnb_aff"]');
}
/** @test */
public function inputOrderDateShouldBeDisplay() {
$this->assertXPath( '//input[@name="search_order_date_debut"]');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment