ReviewOS

also looking at this

meemalabs/meema-client-php

Add More Tests

#42
Merged glennmichael123 wants to merge add-more-tests into main
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.

tests/MeemaMediaTest.phpmodified+2-1
Changes to tests/MeemaMediaTest.php
@@ -62,7 +62,8 @@ it('can update a media', function () {
6262});
6363
6464it('can search a media', function () {
65 $query = 'butterfly';
65 $mediaName = $this->client->media()->find(1)->toArray();
66 $query = $mediaName['name'];
6667
6768 $media = $this->client->media()->search($query);
6869
tests/MeemaTagTest.phpmodified+1-1
Changes to tests/MeemaTagTest.php
@@ -45,7 +45,7 @@ it('can delete a tag', function () {
4545 $tags = $this->client->tags()->get();
4646
4747 $tags = array_reverse($tags['data']);
48 $response = $this->client->folders()->delete($tags[0]['id']);
48 $response = $this->client->tags()->delete($tags[0]['id']);
4949
5050 $this->assertTrue(is_null($response));
5151});