12
12
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager as ObjectManagerHelper ;
13
13
14
14
/**
15
- * Class AbstractConfigTest
16
- * @package Magento\Paypal\Test\Unit\Model
15
+ * Test for \Magento\Framework\App\Config\ScopeConfigInterface
17
16
*/
18
17
class AbstractConfigTest extends \PHPUnit \Framework \TestCase
19
18
{
@@ -30,7 +29,7 @@ class AbstractConfigTest extends \PHPUnit\Framework\TestCase
30
29
31
30
protected function setUp ()
32
31
{
33
- $ this ->scopeConfigMock = $ this ->getMockBuilder (\ Magento \ Framework \ App \ Config \ ScopeConfigInterface::class)
32
+ $ this ->scopeConfigMock = $ this ->getMockBuilder (ScopeConfigInterface::class)
34
33
->setMethods (['getValue ' , 'isSetFlag ' ])
35
34
->getMockForAbstractClass ();
36
35
@@ -51,7 +50,7 @@ public function testSetMethod($method, $expected)
51
50
public function testSetMethodInstance ()
52
51
{
53
52
/** @var $methodInterfaceMock MethodInterface */
54
- $ methodInterfaceMock = $ this ->getMockBuilder (\ Magento \ Payment \ Model \ MethodInterface::class)
53
+ $ methodInterfaceMock = $ this ->getMockBuilder (MethodInterface::class)
55
54
->getMockForAbstractClass ();
56
55
$ this ->assertSame ($ this ->config , $ this ->config ->setMethodInstance ($ methodInterfaceMock ));
57
56
}
@@ -66,7 +65,7 @@ public function testSetMethodInstance()
66
65
public function setMethodDataProvider ()
67
66
{
68
67
/** @var $methodInterfaceMock MethodInterface */
69
- $ methodInterfaceMock = $ this ->getMockBuilder (\ Magento \ Payment \ Model \ MethodInterface::class)
68
+ $ methodInterfaceMock = $ this ->getMockBuilder (MethodInterface::class)
70
69
->getMockForAbstractClass ();
71
70
$ methodInterfaceMock ->expects ($ this ->once ())
72
71
->method ('getCode ' )
0 commit comments