public function testGet() { $r = new Catapult\Recording(); $recs = $r->listRecordings(); $d = $recs->get(); $this->assertEquals($r->id, "r-id"); }
public function testStore() { $r = new Catapult\Recording(); $recs = $r->listRecordings(); $media = $recs->last()->getMediaFile(); $media->store("filename.wav"); }
/** * test guarentees atleast one * transcription. * * also check if the count has been incremented */ public function testListTranscriptions() { $recording = new Catapult\Recording(); $last = $recording->listRecordings()->last(); $trans = new Catapult\Transcription($last->id); $transcriptions = $trans->listTranscriptions(); $this->assertTrue(sizeof($transcriptions->data) > 0); }