Commit 1c090598 authored by Ghislain Loas's avatar Ghislain Loas

dev #86010 fix rt comments

parent 6248ad81
Pipeline #6216 failed with stage
in 28 minutes and 50 seconds
- ticket #86010 : Administration : activation des fonctionnalités de la version 8.0 Suricate Semantic. - ticket #86010 : Administration : activation des fonctionnalités de la version 8.0 .
\ No newline at end of file
<?php <?php
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
\ No newline at end of file \ No newline at end of file
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
class Class_Migration_BokehHeight { class Class_Migration_BokehEight {
use Trait_Translator; use Trait_Translator;
......
...@@ -2463,5 +2463,5 @@ class UpgradeDB_365_Test extends UpgradeDBTestCase { ...@@ -2463,5 +2463,5 @@ class UpgradeDB_365_Test extends UpgradeDBTestCase {
public function prepare() {} public function prepare() {}
/** @test */ /** @test */
public function placeholderForBokehHeightMigration() {} public function placeholderForBokehEightMigration() {}
} }
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
*/ */
class Class_Migration_BokehHeightTest extends ModelTestCase { class Class_Migration_BokehEightTest extends ModelTestCase {
/** @test */ /** @test */
public function bibnumShouldBecomeEnabled() { public function bibnumShouldBecomeEnabled() {
Class_AdminVar::set('BIBNUM', 0); Class_AdminVar::set('BIBNUM', 0);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isBibNumEnabled()); $this->assertTrue(Class_AdminVar::isBibNumEnabled());
} }
...@@ -39,7 +39,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -39,7 +39,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
/** @test */ /** @test */
public function opdsShouldBecomeEnabled() { public function opdsShouldBecomeEnabled() {
Class_AdminVar::set('OPDS', 0); Class_AdminVar::set('OPDS', 0);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isOpdsEnabled()); $this->assertTrue(Class_AdminVar::isOpdsEnabled());
} }
...@@ -53,7 +53,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -53,7 +53,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
/** @test */ /** @test */
public function codificationBrowserShouldBecomeEnabled() { public function codificationBrowserShouldBecomeEnabled() {
Class_AdminVar::set('CODIFICATION_BROWSER', 0); Class_AdminVar::set('CODIFICATION_BROWSER', 0);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isCodificationBrowserEnabled()); $this->assertTrue(Class_AdminVar::isCodificationBrowserEnabled());
} }
...@@ -67,7 +67,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -67,7 +67,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
/** @test */ /** @test */
public function inspectorGadgetMarcXMLShouldBecomeEnabled() { public function inspectorGadgetMarcXMLShouldBecomeEnabled() {
Class_AdminVar::set('INSPECTOR_GADGET_MARC_XML', 0); Class_AdminVar::set('INSPECTOR_GADGET_MARC_XML', 0);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isInspectorGadgetMarcXmlEnabled()); $this->assertTrue(Class_AdminVar::isInspectorGadgetMarcXmlEnabled());
} }
...@@ -81,7 +81,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -81,7 +81,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
/** @test */ /** @test */
public function customSearchFormShouldBecomeEnabled() { public function customSearchFormShouldBecomeEnabled() {
Class_AdminVar::set('CUSTOM_SEARCH_FORM', 0); Class_AdminVar::set('CUSTOM_SEARCH_FORM', 0);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isCustomSearchFormEnabled()); $this->assertTrue(Class_AdminVar::isCustomSearchFormEnabled());
} }
...@@ -95,7 +95,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -95,7 +95,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
/** @test */ /** @test */
public function authorPageShouldBecomeEnabled() { public function authorPageShouldBecomeEnabled() {
Class_AdminVar::set('AUTHOR_PAGE', 0); Class_AdminVar::set('AUTHOR_PAGE', 0);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isAuthorPageEnabled()); $this->assertTrue(Class_AdminVar::isAuthorPageEnabled());
} }
...@@ -113,7 +113,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -113,7 +113,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
['id' => 4, ['id' => 4,
'sigb' => Class_IntBib::SIGB_KOHA, 'sigb' => Class_IntBib::SIGB_KOHA,
'comm_params' => ['url_serveur' => 'https://service.local']]); 'comm_params' => ['url_serveur' => 'https://service.local']]);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isLoginThroughSigbOnlyEnabled()); $this->assertTrue(Class_AdminVar::isLoginThroughSigbOnlyEnabled());
} }
...@@ -125,7 +125,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -125,7 +125,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
['id' => 4, ['id' => 4,
'sigb' => Class_IntBib::SIGB_NANOOK, 'sigb' => Class_IntBib::SIGB_NANOOK,
'comm_params' => ['url_serveur' => 'https://service.local']]); 'comm_params' => ['url_serveur' => 'https://service.local']]);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertTrue(Class_AdminVar::isLoginThroughSigbOnlyEnabled()); $this->assertTrue(Class_AdminVar::isLoginThroughSigbOnlyEnabled());
} }
...@@ -137,7 +137,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -137,7 +137,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
['id' => 4, ['id' => 4,
'sigb' => Class_IntBib::SIGB_ORPHEE, 'sigb' => Class_IntBib::SIGB_ORPHEE,
'comm_params' => ['url_serveur' => 'https://service.local']]); 'comm_params' => ['url_serveur' => 'https://service.local']]);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertFalse(Class_AdminVar::isLoginThroughSigbOnlyEnabled()); $this->assertFalse(Class_AdminVar::isLoginThroughSigbOnlyEnabled());
} }
...@@ -154,7 +154,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -154,7 +154,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
'sigb' => Class_IntBib::SIGB_KOHA, 'sigb' => Class_IntBib::SIGB_KOHA,
'comm_params' => ['url_serveur' => 'https://service-koha.local']]); 'comm_params' => ['url_serveur' => 'https://service-koha.local']]);
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertFalse(Class_AdminVar::isLoginThroughSigbOnlyEnabled()); $this->assertFalse(Class_AdminVar::isLoginThroughSigbOnlyEnabled());
} }
...@@ -162,7 +162,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase { ...@@ -162,7 +162,7 @@ class Class_Migration_BokehHeightTest extends ModelTestCase {
/** @test */ /** @test */
public function variableDateMajAlbumsShouldHaveGroup6() { public function variableDateMajAlbumsShouldHaveGroup6() {
Class_CosmoVar::setValueOf('date_maj_albums', ''); Class_CosmoVar::setValueOf('date_maj_albums', '');
(new Class_Migration_BokehHeight)->run(); (new Class_Migration_BokehEight)->run();
$this->assertEquals(6, Class_CosmoVar::find('date_maj_albums')->getGroupe()); $this->assertEquals(6, Class_CosmoVar::find('date_maj_albums')->getGroupe());
} }
} }
Markdown is supported
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