- Mocks a list of permitted assets
This commit is contained in:
@@ -7,6 +7,10 @@ class ConflictResolverTest extends MailPoetTest {
|
|||||||
|
|
||||||
function __construct() {
|
function __construct() {
|
||||||
$this->conflict_resolver = new ConflictResolver();
|
$this->conflict_resolver = new ConflictResolver();
|
||||||
|
$this->conflict_resolver->allowed_assets = array(
|
||||||
|
'scripts' => array('abc', 'xyz'),
|
||||||
|
'styles' => array('abc', 'xyz'),
|
||||||
|
);
|
||||||
$this->conflict_resolver->init();
|
$this->conflict_resolver->init();
|
||||||
global $wp_filter;
|
global $wp_filter;
|
||||||
$this->wp_filter = $wp_filter;
|
$this->wp_filter = $wp_filter;
|
||||||
|
Reference in New Issue
Block a user