File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/Index/Config Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,7 @@ protected function setUp(): void
6464 $ this ->serializerMock ->expects ($ this ->once ())
6565 ->method ('unserialize ' )
6666 ->with ('serializedData ' )
67- ->willReturn ([
68- 'stemmerInfo ' => [],
69- 'stopwordsInfo ' => []
70- ]);
67+ ->willReturn (['unserializedData ' ]);
7168
7269 $ this ->config = $ this ->objectManager ->getObject (
7370 EsConfig::class,
@@ -80,20 +77,18 @@ protected function setUp(): void
8077 }
8178
8279 /**
83- * Test getStemmerInfo method
80+ * @return array|mixed|null
8481 */
85- public function testGetStemmerInfo (): void
82+ public function testGetStemmerInfo ()
8683 {
87- $ result = $ this ->config ->getStemmerInfo ();
88- $ this ->assertIsArray ($ result );
84+ $ this ->config ->getStemmerInfo ();
8985 }
9086
9187 /**
92- * Test getStopwordsInfo method
88+ * @return array|mixed|null
9389 */
94- public function testGetStopwordsInfo (): void
90+ public function testGetStopwordsInfo ()
9591 {
96- $ result = $ this ->config ->getStopwordsInfo ();
97- $ this ->assertIsArray ($ result );
92+ $ this ->config ->getStopwordsInfo ();
9893 }
9994}
You can’t perform that action at this time.
0 commit comments