/** * try to delete a note type * */ public function testDeleteNoteType() { $noteTypesPre = $this->_instance->getNoteTypes(); $this->_instance->deleteNoteType($this->_objects['noteType']->getId()); $noteTypesPost = $this->_instance->getNoteTypes(); $this->assertLessThan(count($noteTypesPre), count($noteTypesPost)); }
/** * test get note types ids only */ public function testGetNotesTypeOnlyIds() { $noteType = $this->testAddNoteType(); $noteTypesIds = $this->_instance->getNoteTypes(false, true); $this->assertTrue(is_array($noteTypesIds)); $this->assertTrue(is_string($noteTypesIds[0])); }