Example #1
0
 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);
 }
Example #2
0
 /**
  * Apply filter
  *
  * @access public
  * @return FilterInterface
  */
 public function apply()
 {
     $this->query->eq(Task::TABLE . '.color_id', $this->colorModel->find($this->value));
     return $this;
 }