Merge remote-tracking branch 'origin/master' into newsletter_model
This commit is contained in:
@@ -1,22 +1,12 @@
|
||||
<?php
|
||||
|
||||
class UtilCSSCest {
|
||||
public function _before() {
|
||||
$this->css = new \MailPoet\Util\CSS();
|
||||
}
|
||||
public function _before() {
|
||||
$this->css = new \MailPoet\Util\CSS();
|
||||
}
|
||||
|
||||
// tests
|
||||
public function itCanBeInstantiated() {
|
||||
expect_that($this->css instanceof \MailPoet\Util\CSS);
|
||||
}
|
||||
|
||||
public function itCanParseCss() {
|
||||
$styles_array = array();
|
||||
try {
|
||||
$url = dirname(__DIR__).'/../../assets/css/admin.css';
|
||||
$css = $this->css->getCSS($url);
|
||||
$styles_array = $this->css->parseCSS($css);
|
||||
} catch(Exception $e) {}
|
||||
expect($styles_array)->notEmpty();
|
||||
}
|
||||
// tests
|
||||
public function itCanBeInstantiated() {
|
||||
expect_that($this->css instanceof \MailPoet\Util\CSS);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user