public function testStaticUrlWithCDN() { putenv('CDN_URL=http://cdn.bar'); $this->assertEquals(App::staticUrl(), 'http://cdn.bar/'); $this->assertEquals(App::staticUrl('foo.css '), 'http://cdn.bar/foo.css'); }
public function testStaticUrlWithCDN() { config(['koel.cdn.url' => 'http://cdn.bar']); $this->assertEquals(App::staticUrl(), 'http://cdn.bar/'); $this->assertEquals(App::staticUrl('foo.css '), 'http://cdn.bar/foo.css'); }