From 830e1dffe03bd8e2d332eb5891d934fd29df4348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Wis=CC=81niewski?= Date: Fri, 14 Jun 2024 07:15:01 +0200 Subject: [PATCH] Fix tests --- tests/Repositories/H5PRepositoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Repositories/H5PRepositoryTest.php b/tests/Repositories/H5PRepositoryTest.php index eac0307a..efb90c10 100644 --- a/tests/Repositories/H5PRepositoryTest.php +++ b/tests/Repositories/H5PRepositoryTest.php @@ -67,7 +67,7 @@ public function testFetchExternalDataShouldReturnFalseWhenStatusIs400(): void $url = H5PHubEndpoints::createURL('example/url'); $result = $this->repository->fetchExternalData($url, null, false, null, false); - $this->assertFalse($result); + $this->assertNull($result); } public function testFetchExternalDataShouldReturnFalseWhenStatusIsDifferentFrom200(): void @@ -77,7 +77,7 @@ public function testFetchExternalDataShouldReturnFalseWhenStatusIsDifferentFrom2 $url = H5PHubEndpoints::createURL('example/url'); $result = $this->repository->fetchExternalData($url, null, false, null, false); - $this->assertFalse($result); + $this->assertNull($result); } public function testLoadAddonsShouldReturnHigherVersionLibrary(): void