Skip to content

Commit

Permalink
Improve unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Feb 6, 2023
1 parent 854f409 commit 7bb15b8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/Provider/ApiProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public function testCollection(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand All @@ -110,7 +109,6 @@ public function testCollections(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand All @@ -137,7 +135,6 @@ public function testCuratedPhotos(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand Down Expand Up @@ -184,7 +181,6 @@ public function testGetPhoto(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand Down Expand Up @@ -232,7 +228,6 @@ public function testGetVideo(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand All @@ -256,7 +251,6 @@ public function testPopularVideos(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand Down Expand Up @@ -302,7 +296,6 @@ public function testRequestNextPageWithPhotosResponse(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand Down Expand Up @@ -330,7 +323,6 @@ public function testRequestNextPageWithVideosResponse(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand Down Expand Up @@ -359,7 +351,6 @@ public function testRequestPrevPageWithPhotosResponse(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand Down Expand Up @@ -388,7 +379,6 @@ public function testRequestPrevPageWithVideosResponse(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand All @@ -414,7 +404,6 @@ public function testSearchPhotos(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}

Expand All @@ -439,7 +428,6 @@ public function testSearchVideos(): void {
} catch (Throwable $ex) {

$this->assertInstanceOf(ApiException::class, $ex);
$this->assertEquals(403, $ex->getPrevious()->getCode());
}
}
}

0 comments on commit 7bb15b8

Please sign in to comment.