-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OXDEV-1284 Add invalidateModuleCache to ShopAdapterInterface
- Loading branch information
1 parent
39f1050
commit d1bbf4d
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
source/Internal/Adapter/Exception/ModuleNotLoadableException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright © OXID eSales AG. All rights reserved. | ||
* See LICENSE file for license details. | ||
*/ | ||
|
||
namespace OxidEsales\EshopCommunity\Internal\Common\Exception; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
class ModuleNotLoadableException extends \Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* Copyright © OXID eSales AG. All rights reserved. | ||
* See LICENSE file for license details. | ||
*/ | ||
|
||
|
||
namespace OxidEsales\EshopCommunity\Tests\Unit\Internal\Adapter; | ||
|
||
|
||
use OxidEsales\EshopCommunity\Internal\Adapter\ShopAdapter; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class ShopAdapterTest extends TestCase | ||
{ | ||
/** | ||
* @expectedException \OxidEsales\EshopCommunity\Internal\Common\Exception\ModuleNotLoadableException | ||
*/ | ||
public function testInvalidateCacheThrowsExceptionOnNonExistentModuleId() | ||
{ | ||
$shopAdapter = new ShopAdapter(); | ||
$shopAdapter->invalidateModuleCache(uniqid('test', false)); | ||
} | ||
} |