Skip to content
Snippets Groups Projects
Commit fc01104a authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #61350: hide no more DCMI Types codification

parent 28e14626
Branches
Tags
2 merge requests!2380Dev#61350 entrepot oai gallica europeana,!2373Dev#61350 entrepot oai gallica europeana
Pipeline #2674 failed with stage
in 20 minutes and 37 seconds
......@@ -4,4 +4,5 @@ $adapter = Zend_Db_Table_Abstract::getDefaultAdapter();
try{
$adapter->query('alter table album drop column auteur');
$adapter->query('alter table album drop column editeur');
$adapter->query('update variables set hidden=0, verrou="" where clef="nature_docs"');
} catch(Exception $e) {}
......@@ -1766,6 +1766,7 @@ class UpgradeDB_337_Test extends UpgradeDBTestCase {
try {
$this->query('ALTER TABLE album add column auteur varchar(250)');
$this->query('ALTER TABLE album add column editeur varchar(250)');
$this->query('update variables set hidden=1, verrou="checked" where clef="nature_docs"');
} catch(Exception $e) {}
}
......@@ -1780,4 +1781,22 @@ class UpgradeDB_337_Test extends UpgradeDBTestCase {
public function columnEditeurShouldNotExist() {
$this->assertNotColumn('album', 'editeur');
}
/** @test */
public function natureDocsShouldNotBeHidden() {
$result = $this->query('select hidden from variables where clef="nature_docs"')
->fetch();
$this->assertEquals(0, $result['hidden']);
}
/** @test */
public function natureDocsShouldNotBeLocked() {
$result = $this->query('select verrou from variables where clef="nature_docs"')
->fetch();
$this->assertEquals('', $result['verrou']);
}
}
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