/** * Tests Gadget->getViews() */ public function testGetViews() { $this->Gadget->views = array(0 => 'A', 1 => 'B'); $this->assertEquals(array(0 => 'A', 1 => 'B'), $this->Gadget->getViews()); }