Skip to content

Commit

Permalink
MAGETWO-32870: [GITHUB] extra tests for current interception behavior #…
Browse files Browse the repository at this point in the history
…965

- Fixed license headers
- Moved fields from GeneralTest to AbstractPlugin
  • Loading branch information
otoolec committed Jan 22, 2015
1 parent 205a6e0 commit 7d44c20
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
<?php
/**
*
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Interception;

use Magento\Framework\ObjectManager\Config\Config as ObjectManagerConfig;

/**
* Class GeneralTest
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
abstract class AbstractPlugin extends \PHPUnit_Framework_TestCase
{

/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
protected $_configReader;

/**
* @var \Magento\Framework\ObjectManagerInterface
*/
protected $_objectManager;

public function setUpInterceptionConfig($pluginConfig)
{
$config = new \Magento\Framework\Interception\ObjectManager\Config\Developer();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
/**
*
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
Expand All @@ -12,16 +11,6 @@
*/
class GeneralTest extends AbstractPlugin
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
protected $_configReader;

/**
* @var \Magento\Framework\ObjectManagerInterface
*/
protected $_objectManager;

public function setUp()
{
$this->setUpInterceptionConfig(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
*
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\Interception;

Expand Down

0 comments on commit 7d44c20

Please sign in to comment.