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

testAssetsManagerAddingCss() public method

Tests addCss
Since: 2014-10-13
Author: Nikolaos Dimopoulos ([email protected])
    public function testAssetsManagerAddingCss()
    {
        $this->specify("The addCss on assets manager does add resources correctly", function () {
            $assets = new Manager();
            $assets->addCss('/css/style1.css');
            $assets->addCss('/css/style2.css');
            $collection = $assets->get('css');
            $number = 0;
            foreach ($collection as $resource) {
                expect('css')->equals($resource->getType());
                $number++;
            }
            expect($number)->equals(2);
        });
    }