request('POST', '/prod/records/edit/', array('lst' => self::$DI['record_1']->get_serialize_key())); $response = self::$DI['client']->getResponse(); $this->assertTrue($response->isOk()); } public function testApply() { self::$DI['client']->request('POST', '/prod/records/edit/apply/', array('lst' => self::$DI['record_1']->get_serialize_key())); $response = self::$DI['client']->getResponse(); $this->assertTrue($response->isOk()); } public function testVocabulary() { self::$DI['client']->request('GET', '/prod/records/edit/vocabulary/Zanzibar/'); $response = self::$DI['client']->getResponse(); $this->assertTrue($response->isOk()); $datas = json_decode($response->getContent()); $this->assertFalse($datas->success); self::$DI['client']->request('GET', '/prod/records/edit/vocabulary/User/'); $response = self::$DI['client']->getResponse(); $this->assertTrue($response->isOk()); $datas = json_decode($response->getContent()); $this->assertFalse($datas->success); $params = array('sbas_id' => self::$DI['collection']->get_sbas_id()); self::$DI['client']->request('GET', '/prod/records/edit/vocabulary/Zanzibar/', $params); $response = self::$DI['client']->getResponse(); $this->assertTrue($response->isOk()); $datas = json_decode($response->getContent()); $this->assertFalse($datas->success); $params = array('sbas_id' => self::$DI['collection']->get_sbas_id()); self::$DI['client']->request('GET', '/prod/records/edit/vocabulary/User/', $params); $response = self::$DI['client']->getResponse(); $this->assertTrue($response->isOk()); $datas = json_decode($response->getContent()); $this->assertTrue($datas->success); } }