@@ -61,29 +61,4 @@ public function storeConfigShouldContainBaseUrl()
61
61
$ this ->assertEquals (Mage::app ()->getStore (1 )->getBaseUrl (), $ config ->getStoreConfig ()->getBaseUrl ());
62
62
}
63
63
64
- /**
65
- * The SerializableConfig interface is part of the SolrSuggest package
66
- * @test
67
- */
68
- public function configShouldBeSerializable ()
69
- {
70
- // use different fuzzy config for search and autosuggest to make sure, both are serialized independently
71
- Mage::app ()->getStore (1 )->setConfig ('integernet_solr/fuzzy/is_active ' , '1 ' );
72
- Mage::app ()->getStore (1 )->setConfig ('integernet_solr/fuzzy/is_active_autosuggest ' , '0 ' );
73
-
74
- /**
75
- * @var $configFromSerialized IntegerNet\Solr\Implementor\Config
76
- */
77
- $ config = Mage::getModel ('integernet_solr/config_store ' , 1 );
78
- $ configFromSerialized = unserialize (serialize (\IntegerNet \SolrSuggest \Plain \Config::fromConfig ($ config )));
79
-
80
- $ this ->assertInstanceOf (\IntegerNet \SolrSuggest \Plain \Config::class, $ configFromSerialized );
81
- $ this ->assertEquals ($ config ->getStoreConfig (), $ configFromSerialized ->getStoreConfig ());
82
- $ this ->assertEquals ($ config ->getGeneralConfig (), $ configFromSerialized ->getGeneralConfig ());
83
- $ this ->assertEquals ($ config ->getResultsConfig (), $ configFromSerialized ->getResultsConfig ());
84
- $ this ->assertEquals ($ config ->getFuzzyAutosuggestConfig (), $ configFromSerialized ->getFuzzyAutosuggestConfig ());
85
- $ this ->assertEquals ($ config ->getFuzzySearchConfig (), $ configFromSerialized ->getFuzzySearchConfig ());
86
- $ this ->assertEquals ($ config ->getIndexingConfig (), $ configFromSerialized ->getIndexingConfig ());
87
- $ this ->assertEquals ($ config ->getServerConfig (), $ configFromSerialized ->getServerConfig ());
88
- }
89
64
}
0 commit comments