Skip to content
Snippets Groups Projects

explo new storm with more volatile

Merged Sebastien ANDRE requested to merge explo_new_storm into master
Compare and Show latest version
2 files
+ 31
27
Preferences
Compare changes
Files
2
@@ -19,38 +19,42 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once 'ModelTestCase.php';
require_once 'classe_bib.php';
class BibTest extends Storm_Test_ModelTestCase {
protected $_html;
class BibTest extends ModelTestCase {
protected $_html;
public function setUp() {
parent::setUp();
$this->fixture(Class_IntBib::class,
['id' => 3,
'nom' => null,
'nom_court' => 'An',
'bib' => $this->fixture(Class_Bib::class,
['id' => 3,
'libelle' => 'Annecy'])]);
public function setUp() {
parent::setUp();
$this->fixture('Class_IntBib', ['id' => 3,
'nom' => null,
'nom_court' => 'An',
'bib' => $this->fixture('Class_Bib', ['id' => 3,
'libelle' => 'Annecy'])]);
$this->fixture(Class_IntBib::class,
['id' => 4,
'nom' => null,
'nom_court' => 'Cran']);
$this->fixture('Class_IntBib', ['id' => 4,
'nom' => null,
'nom_court' => 'Cran']);
$this->_html = (new bibliotheque)->getComboNoms(3);
}
$this->_html = (new bibliotheque())->getComboNoms(3);
}
/** @test */
public function combosNomsShouldAnswerAnnecySelected() {
$this->assertContains('<option value="3" selected="selected">Annecy</option>',
$this->_html);
}
/** @test */
public function combosNomsShouldAnswerAnnecySelected() {
$this->assertContains('<option value="3" selected="selected">Annecy</option>',
$this->_html);
}
/** @test */
public function combosNomsShouldAnswerCranNotSelected() {
$this->assertContains('<option value="4">Cran</option>',
$this->_html);
}
/** @test */
public function combosNomsShouldAnswerCranNotSelected() {
$this->assertContains('<option value="4">Cran</option>',
$this->_html);
}
}
?>
\ No newline at end of file