1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Disable fixRegistry during testing.

This commit is contained in:
Cameron
2021-01-25 12:31:18 -08:00
parent 1c98e5e341
commit 46af21d105

View File

@@ -125,7 +125,7 @@
{ {
codecept_debug("Truncating user_extended_struct"); codecept_debug("Truncating user_extended_struct");
$sql->truncate('user_extended_struct'); $sql->truncate('user_extended_struct');
$this->ue->init(); // reload the extended fields from db.
} }
@@ -272,7 +272,7 @@
*/ */
public function testUserExtendedShortcode() public function testUserExtendedShortcode()
{ {
$this->fixRegistry('before'); // $this->fixRegistry('before');
foreach($this->userValues as $field => $value) foreach($this->userValues as $field => $value)
{ {
@@ -377,7 +377,7 @@
$this->assertStringContainsString($legacyExpectedIcons[$field], $result); $this->assertStringContainsString($legacyExpectedIcons[$field], $result);
} }
$this->fixRegistry('after'); // $this->fixRegistry('after');
} }
@@ -568,7 +568,7 @@
public function testGetStructure() public function testGetStructure()
{ {
e107::setRegistry('core/userextended/structure'); // clear the registry. // e107::setRegistry('core/userextended/structure'); // clear the registry.
$result = $this->ue->getStructure(); $result = $this->ue->getStructure();