public function testSetMethodInstance() { /** @var $methodInterfaceMock MethodInterface */ $methodInterfaceMock = $this->getMockBuilder('Magento\\Payment\\Model\\MethodInterface')->getMockForAbstractClass(); $this->assertSame($this->config, $this->config->setMethodInstance($methodInterfaceMock)); }