also looking at this
Add More Tests
#42
6 files
+170
-26
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -62,7 +62,8 @@ it('can update a media', function () { | ||
| 62 | 62 | }); |
| 63 | 63 | |
| 64 | 64 | it('can search a media', function () { |
| 65 | $query = 'butterfly'; | |
| 65 | $mediaName = $this->client->media()->find(1)->toArray(); | |
| 66 | $query = $mediaName['name']; | |
| 66 | 67 | |
| 67 | 68 | $media = $this->client->media()->search($query); |
| 68 | 69 | |
| @@ -45,7 +45,7 @@ it('can delete a tag', function () { | ||
| 45 | 45 | $tags = $this->client->tags()->get(); |
| 46 | 46 | |
| 47 | 47 | $tags = array_reverse($tags['data']); |
| 48 | $response = $this->client->folders()->delete($tags[0]['id']); | |
| 48 | $response = $this->client->tags()->delete($tags[0]['id']); | |
| 49 | 49 | |
| 50 | 50 | $this->assertTrue(is_null($response)); |
| 51 | 51 | }); |