mirror of
https://github.com/getgrav/grav.git
synced 2026-03-19 02:51:20 +01:00
✅ Test using Streams in Assets::addDir()
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user