summaryrefslogtreecommitdiff
path: root/tests/units/Helper/AssetHelperTest.php
blob: 7e1edb1249f8ec929452c7ea9c79f988424891c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

require_once __DIR__.'/../Base.php';

use Kanboard\Helper\Asset;
use Kanboard\Model\Config;

class AssetHelperTest extends Base
{
    public function testCustomCss()
    {
        $h = new Asset($this->container);
        $c = new Config($this->container);

        $this->assertEmpty($h->customCss());

        $this->assertTrue($c->save(array('application_stylesheet' => 'p { color: red }')));

        $this->assertEquals('<style>p { color: red }</style>', $h->customCss());
    }
}