Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Aug 10, 2018
1 parent 3555ed7 commit f1a54f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions bundle/Tests/Cache/PersistenceCachePurgerTest.php
Expand Up @@ -142,6 +142,7 @@ public function testClearAllContent()
{
$map = array(
array('content', null),
array(['content', 'info', 'remoteId'], null),
array('urlAlias', null),
array('location', null),
);
Expand Down
4 changes: 2 additions & 2 deletions bundle/Tests/Cache/SwitchableHttpCachePurgerTest.php
Expand Up @@ -7,7 +7,7 @@
*/
namespace eZ\Bundle\EzPublishLegacyBundle\Tests\Cache;

use eZ\Bundle\EzPublishLegacyBundle\Cache\SwitchableHttpCachePurger;
use eZ\Bundle\EzPublishLegacyBundle\Cache\LegacySwitchableHttpCachePurger;
use eZ\Publish\Core\MVC\Symfony\Cache\GatewayCachePurger;
use PHPUnit\Framework\TestCase;

Expand All @@ -22,7 +22,7 @@ class SwitchableHttpCachePurgerTest extends TestCase
public function setUp()
{
$this->gatewayCachePurgerMock = $this->createMock(GatewayCachePurger::class);
$this->httpCachePurger = new SwitchableHttpCachePurger($this->gatewayCachePurgerMock);
$this->httpCachePurger = new LegacySwitchableHttpCachePurger($this->gatewayCachePurgerMock);
}

public function testPurgeSwitchedOn()
Expand Down
Expand Up @@ -22,6 +22,13 @@ protected function getContainerExtensions()
);
}

protected function setUp()
{
parent::setUp();

$this->setParameter('kernel.bundles', []);
}

public function testBundleNotEnabled()
{
$this->load(['enabled' => false]);
Expand Down

0 comments on commit f1a54f9

Please sign in to comment.