Phalcon\Test\Unit\Assets\ManagerTest::testAssetsExistsCollection PHP Method

testAssetsExistsCollection() public method

exists tests
Since: 2016-03-16
Author: Wojciech Ĺšlawski ([email protected])
    public function testAssetsExistsCollection()
    {
        $this->specify("The exists method in assets does not return correct value", function () {
            $assets = new Manager();
            $assets->collection('footer')->addCss('/css/style1.css');
            $footer = $assets->exists('footer');
            $header = $assets->exists('header');
            expect($footer)->true();
            expect($header)->false();
        });
    }