public function testPopulateFromRequestSome() { $arguments = array('backgroundColor' => 'rgb(0,0,0)'); $r = Request::create('http://www.foo.com', 'POST', $arguments); $set = StyleSet::populateFromRequest($r); $this->assertInstanceOf('\\Concrete\\Core\\StyleCustomizer\\Inline\\StyleSet', $set); $b = new \Concrete\Core\Block\Block(); $b->bID = 100; $a = new \Concrete\Core\Area\Area('Test'); $b->setBlockAreaObject($a); $style = new CustomStyle($set, $b); $this->assertEquals('.ccm-custom-style-container.ccm-custom-style-test-100{background-color:rgb(0,0,0)}', $style->getCSS()); $arguments = array('backgroundColor' => '', 'backgroundImageFileID' => 10); $r = Request::create('http://www.foo.com', 'POST', $arguments); $set = StyleSet::populateFromRequest($r); $this->assertInstanceOf('\\Concrete\\Core\\StyleCustomizer\\Inline\\StyleSet', $set); }
public static function getByID($bID, $c = null, $a = null) { return Concrete\Core\Block\Block::getByID($bID, $c, $a); }