hotline #74120 fix doc type selector in search widget
Merged
requested to merge hotline#74120_pb_parametrage_boite_recherche_types_doc_par_defaut_ko into hotline
2 unresolved threads
Merge request reports
Activity
Filter activity
385 $this->preferences['message'] = ''; 386 $this->preferences['placeholder'] = ''; 387 $this->preferences['largeur'] = ''; 388 $this->preferences['exemple'] = ''; 389 $this->preferences['select_annexe'] = ''; 390 $this->preferences['domain_ids'] = ''; 391 $this->preferences['select_bib'] = ''; 392 $this->preferences['recherche_avancee'] = ''; 393 } 394 395 396 /** @test */ 397 public function tousShouldBeSelected() { 398 $this->preferences['type_doc'] = ''; 399 $this->_html = $this->_helper->tagRechercheSimple($this->preferences, 1); 400 $this->assertXPathContentContains($this->_html, '//option[@value=""][@selected]', 'tous'); 401 } 402 403 404 /** @test */ 405 public function livresShouldBeSelected() { 406 $this->preferences['type_doc'] = '1'; 407 $this->_html = $this->_helper->tagRechercheSimple($this->preferences, 1); 408 $this->assertXPathContentContains($this->_html, '//option[@value="1"][@selected]', 'Livres'); 409 } 410 411 412 /** @test */ 413 public function nonIdentifieShouldBeSelected() { 414 $this->preferences['type_doc'] = '0'; 415 $this->_html = $this->_helper->tagRechercheSimple($this->preferences, 1); 416 $this->assertXPathContentContains($this->_html, '//option[@value="0"][@selected]', 'Non identifi'); enabled an automatic merge when the pipeline for 1395a020 succeeds
mentioned in commit 83164fc7