/** * Tests Gadget->getUserPrefs() */ public function testGetUserPrefs() { $userPrefs = $this->gadget->getUserPrefs(); $this->assertEquals("name1", $userPrefs[0]['name']); $this->assertEquals("0", $userPrefs[0]['defaultValue']); $this->assertEquals("0", $userPrefs[0]['value']); $this->assertEquals("name2", $userPrefs[1]['name']); $this->assertEquals("value", $userPrefs[1]['defaultValue']); $this->assertEquals("value", $userPrefs[1]['value']); }
/** * Tests Gadget->getUserPrefs() */ public function testGetUserPrefs() { $this->Gadget->userPrefs = array(0 => 'A', 1 => 'B'); $this->assertEquals(array(0 => 'A', 1 => 'B'), $this->Gadget->getUserPrefs()); }