Skip to content

Commit 2d76458

Browse files
committed
AC-15048::[CE] PHPUnit 12: Upgrade Search & Navigation related test cases | Static Test Fixes
1 parent c59df93 commit 2d76458

File tree

1 file changed

+7
-12
lines changed
  • app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/Index/Config

1 file changed

+7
-12
lines changed

app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter/Index/Config/EsConfigTest.php

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)