public function testGetCss() { $colorModel = new Color($this->container); $css = $colorModel->getCss(); $this->assertStringStartsWith('div.color-yellow {', $css); $this->assertStringEndsWith('td.color-amber { background-color: #ffe082}', $css); }
/** * Apply filter * * @access public * @return FilterInterface */ public function apply() { $this->query->eq(Task::TABLE . '.color_id', $this->colorModel->find($this->value)); return $this; }