public function testGetList() { $primitive = Primitive::enum('enum')->of('MimeType'); $enum = MimeType::wrap(1); $this->assertEquals($primitive->getList(), MimeType::getObjectList()); $primitive->setDefault($enum); $this->assertEquals($primitive->getList(), MimeType::getObjectList()); $primitive->import(array('enum' => MimeType::getAnyId())); $this->assertEquals($primitive->getList(), MimeType::getObjectList()); }