diff --git a/src/Entity/Index.php b/src/Entity/Index.php index 3fe38b9..2382cb8 100644 --- a/src/Entity/Index.php +++ b/src/Entity/Index.php @@ -490,6 +490,9 @@ class Index extends ConfigEntityBase implements IndexInterface { 'weights' => array(), 'settings' => $settings, ); + + // Reset processors static cache. + $this->processorInstances = array(); } /** @@ -497,6 +500,9 @@ class Index extends ConfigEntityBase implements IndexInterface { */ public function removeProcessor($processor_id) { unset($this->processor_settings[$processor_id]); + + // Reset processors static cache. + $this->processorInstances = array(); } /** diff --git a/src/Tests/IntegrationTest.php b/src/Tests/IntegrationTest.php index 0ef3d1b..a34e452 100644 --- a/src/Tests/IntegrationTest.php +++ b/src/Tests/IntegrationTest.php @@ -97,7 +97,6 @@ class IntegrationTest extends WebTestBase { $this->deleteServer(); } - /** * Test what happens when an index has an integer as id/label. *