Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit f23ccc1

Browse files
authored
Merge pull request #3800 from mage2pratik/patch-27
Updated function name and argument of configuration fixture annotation example
2 parents 7240632 + a9504d1 commit f23ccc1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

guides/v2.2/test/integration/annotations/magento-config-fixture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class ConfigFixtureTest extends \PHPUnit\Framework\TestCase
4545
4646
protected function setUp()
4747
{
48-
$this->_object = $this->getMock(
49-
'Magento\TestFramework\Annotation\ConfigFixture',
48+
$this->_object = $this->createPartialMock(
49+
\Magento\TestFramework\Annotation\ConfigFixture::class,
5050
['_getConfigValue', '_setConfigValue']
5151
);
5252
}

guides/v2.3/test/integration/annotations/magento-config-fixture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class ConfigFixtureTest extends \PHPUnit\Framework\TestCase
4545
4646
protected function setUp()
4747
{
48-
$this->_object = $this->getMock(
49-
'Magento\TestFramework\Annotation\ConfigFixture',
48+
$this->_object = $this->createPartialMock(
49+
\Magento\TestFramework\Annotation\ConfigFixture::class,
5050
['_getConfigValue', '_setConfigValue']
5151
);
5252
}

0 commit comments

Comments
 (0)