Test using Streams in Assets::addDir()

This commit is contained in:
Flavio Copes
2016-01-27 12:09:04 +01:00
parent 8a3636d10f
commit cbb1cc2b85

View File

@@ -460,5 +460,14 @@ class AssetsTest extends \Codeception\TestCase\Test
$this->assertTrue(is_array($assets->getJs()));
$this->assertTrue(count($assets->getJs()) > 0);
//Use streams
$assets->reset();
$assets->addDir('system://assets');
$this->assertTrue(is_array($assets->getCss()));
$this->assertTrue(count($assets->getCss()) > 0);
$this->assertTrue(is_array($assets->getJs()));
$this->assertTrue(count($assets->getJs()) > 0);
}
}