public function testGetList() { $colorModel = new Color($this->container); $colors = $colorModel->getList(); $this->assertCount(16, $colors); $this->assertEquals('Yellow', $colors['yellow']); $colors = $colorModel->getList(true); $this->assertCount(17, $colors); $this->assertEquals('All colors', $colors['']); $this->assertEquals('Yellow', $colors['yellow']); }