Skip to content
Snippets Groups Projects

Php 8 3

Merged Sebastien ANDRE requested to merge php_8_3 into master
Compare and Show latest version
1 file
+ 29
29
Preferences
Compare changes
@@ -22,8 +22,8 @@
abstract class BibControllerTestCase extends Admin_AbstractControllerTestCase {
protected Class_Bib $bib_annecy;
protected Class_Bib $bib_cran;
protected Class_Bib $_bib_annecy;
protected Class_Bib $_bib_cran;
public function setUp() {
parent::setUp();
@@ -43,7 +43,7 @@ abstract class BibControllerTestCase extends Admin_AbstractControllerTestCase {
$this->fixture(Class_CosmoVar::class,
['id' => 'types_docs', 'liste' => '']);
$this->bib_annecy =
$this->_bib_annecy =
$this->fixture(Class_Bib::class,
['id' => 2,
'libelle' => 'Annecy',
@@ -75,7 +75,7 @@ abstract class BibControllerTestCase extends Admin_AbstractControllerTestCase {
'id_origine' => 1
]);
$this->bib_cran =
$this->_bib_cran =
$this->fixture(Class_Bib::class,
['id' => 3,
'libelle' => 'Cran-Gévrier',
@@ -101,7 +101,7 @@ abstract class BibControllerTestCase extends Admin_AbstractControllerTestCase {
'titre' => 'Vive les vacances !',
'contenu' => 'Youpi']);
$this->bib_cran
$this->_bib_cran
->setArticleCategories([$cat_cran_news])
->save();
@@ -650,9 +650,9 @@ class BibControllerWithAdminBibEditAnnecyTest extends BibControllerWithAdminBibT
'field_type' => Class_CustomField_Meta::MULTI_CHECKBOX,
'model' => 'Bib']);
$this->bib_annecy->assertSave();
$this->bib_annecy->setCustomField('Options', ['Wifi','Restauration']);
$this->bib_annecy->saveWithCustomFields();
$this->_bib_annecy->assertSave();
$this->_bib_annecy->setCustomField('Options', ['Wifi','Restauration']);
$this->_bib_annecy->saveWithCustomFields();
$this->dispatch('admin/bib/edit/id/2');
}
@@ -826,13 +826,13 @@ class BibControllerWithAdminBibEditAnnecyWithoutEmailButSetNotifyTest
public function setUp() {
parent::setUp();
$this->bib_annecy = $this->fixture(Class_Bib::class,
['id' => 2,
'mail' => 'jc@example.com',
'notify_on_new_resa' => false,
'notify_on_new_user' => false,
'rewrite_url' => 'annecy'
]);
$this->_bib_annecy = $this->fixture(Class_Bib::class,
['id' => 2,
'mail' => 'jc@example.com',
'notify_on_new_resa' => false,
'notify_on_new_user' => false,
'rewrite_url' => 'annecy'
]);
}
@@ -995,7 +995,7 @@ class BibControllerWithAdminBibEditAnnecyPostTest extends BibControllerWithAdmin
public function inputValuesDisplayed($datas) {
$key=array_keys($datas)[0];
$value=$datas[$key];
$this->assertEquals($value, $this->bib_annecy->$key);
$this->assertEquals($value, $this->_bib_annecy->$key);
}
@@ -1478,7 +1478,7 @@ class BibControllerDeleteCranActionTest extends BibControllerDeleteCranActionTes
/** @test */
public function numberOfFeedsShouldBeThree() {
$this->assertEquals(3, $this->bib_cran->numberOfFeeds());
$this->assertEquals(3, $this->_bib_cran->numberOfFeeds());
}
@@ -1616,13 +1616,13 @@ class BibControllerForceDeleteCranActionTest extends BibControllerDeleteCranActi
/** @test */
public function intBibShouldBeDeleted() {
$this->assertNull(Class_IntBib::find($this->bib_cran->getId()));
$this->assertNull(Class_IntBib::find($this->_bib_cran->getId()));
}
/** @test */
public function intBibMajAutoShouldBeDeleted() {
$this->assertEmpty(Class_IntMajAuto::findAllBy(['id_bib' => $this->bib_cran->getId()]));
$this->assertEmpty(Class_IntMajAuto::findAllBy(['id_bib' => $this->_bib_cran->getId()]));
}
@@ -1712,7 +1712,7 @@ class BibControllerLocalisationsAnnecyListTest extends BibControllerTestCase {
['id' => 9,
'libelle' => 'Arts',
'description' => 'Coin des arts.',
'bib' => $this->bib_annecy,
'bib' => $this->_bib_annecy,
'image' => 'bib_2_localisation_9.jpg']);
$this->dispatch('admin/bib/localisations/id_bib/2');
@@ -1759,7 +1759,7 @@ class BibControllerLocalisatonDeleteTest extends BibControllerTestCase {
['id' => 9,
'libelle' => 'Arts',
'description' => 'Coin des arts.',
'bib' => $this->bib_annecy,
'bib' => $this->_bib_annecy,
'image' => 'bib_2_localisation_9.jpg']);
$this->dispatch('admin/bib/localisationsdelete/id_localisation/9/id_bib/2');
@@ -1784,7 +1784,7 @@ class BibControllerPlanTest extends BibControllerTestCase {
['id' => 9,
'libelle' => 'Arts',
'description' => 'Coin des arts.',
'bib' => $this->bib_annecy,
'bib' => $this->_bib_annecy,
'image' => 'bib_2_localisation_9.jpg']);
$file_system = Storm_Test_ObjectWrapper::mock()
->whenCalled('file_exists')
@@ -1797,7 +1797,7 @@ class BibControllerPlanTest extends BibControllerTestCase {
$plan = $this->fixture(Class_Plan::class,
['id'=> 3,
'bib' => $this->bib_cran,
'bib' => $this->_bib_cran,
'libelle' => 'Mezzanine',
'description' => '',
'image' => 'mezzanine.png']);
@@ -1831,7 +1831,7 @@ class BibControllerPlanMajTest extends BibControllerTestCase {
['id' => 9,
'libelle' => 'Arts',
'description' => 'Coin des arts.',
'bib' => $this->bib_annecy,
'bib' => $this->_bib_annecy,
'image' => 'bib_2_localisation_9.jpg']);
$file_system = Storm_Test_ObjectWrapper::mock()
@@ -1845,7 +1845,7 @@ class BibControllerPlanMajTest extends BibControllerTestCase {
$plan = $this->fixture(Class_Plan::class,
['id'=> 3,
'bib' => $this->bib_cran,
'bib' => $this->_bib_cran,
'libelle' => 'Mezzanine',
'description' => '',
'image' => 'mezzanine.png']);
@@ -1885,7 +1885,7 @@ class BibControllerPostMajPlanTest extends BibControllerTestCase {
['id' => 9,
'libelle' => 'Arts',
'description' => 'Coin des arts.',
'bib' => $this->bib_annecy,
'bib' => $this->_bib_annecy,
'image' => 'bib_2_localisation_9.jpg']);
$file_system = Storm_Test_ObjectWrapper::mock()
@@ -1899,7 +1899,7 @@ class BibControllerPostMajPlanTest extends BibControllerTestCase {
$plan=$this->fixture(Class_Plan::class,
['id'=> 3,
'bib' => $this->bib_cran,
'bib' => $this->_bib_cran,
'libelle' => 'Mezzanine',
'description' => '',
'image' => 'mezzanine.png']);
@@ -1952,7 +1952,7 @@ class BibControllerLocalisationMajTest extends BibControllerTestCase {
$this->fixture(Class_Localisation::class,
['id' => 9,
'bib' => $this->bib_annecy,
'bib' => $this->_bib_annecy,
'libelle' => 'Arts',
'description' => 'Coin des arts.',
'plan' =>$plan,
@@ -2040,7 +2040,7 @@ class BibControllerAjaxImagePlanTest extends BibControllerTestCase {
$plan = $this->fixture(Class_Plan::class,
['id'=> 3,
'bib' => $this->bib_cran,
'bib' => $this->_bib_cran,
'libelle' => 'Mezzanine',
'description' => '',
'image' => 'mezzanine.png']);