public function testTopCategoryWithValue() { $data = json_decode(file_get_contents(dirname(__DIR__) . '/fixtures/character_achievements.json'), true); $data['achievements'][1]['categories'][0]['top'] = array(96, 'Quests'); $obj = new DataAchievements(); $obj->setServiceLocator(new ServiceLocator()); $obj->populate($data['achievements'][1]['categories'][0]); $this->assertEquals('Quests', $obj->getTopCategory()); $this->assertEquals(96, $obj->getTopCategoryId()); }
public function testTopCategoryId() { $this->assertNull(self::$obj->getTopCategoryId()); }