diff --git a/tests/ParcelShopSingleTest.php b/tests/ParcelShopSingleTest.php index 577bebc..b1ca51e 100644 --- a/tests/ParcelShopSingleTest.php +++ b/tests/ParcelShopSingleTest.php @@ -42,11 +42,13 @@ public function testOneParcelFound() $this->assertCount(7, $parcel->getOpenings()); foreach ($parcel->getOpenings() as $opening) { - $this->assertTrue(in_array($opening->getDay(), ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], true)); + $this->assertContains( + $opening->getDay(), + ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] + ); $this->assertEquals('08:00', $opening->getOpenFrom()); $this->assertEquals('22:00', $opening->getOpenTo()); } - } public function testFindOneParcelParcelsFoundButNotCorrect() diff --git a/tests/ParcelShopZipcodeTest.php b/tests/ParcelShopZipcodeTest.php index f9a1836..f78b386 100644 --- a/tests/ParcelShopZipcodeTest.php +++ b/tests/ParcelShopZipcodeTest.php @@ -29,7 +29,6 @@ public function testGetParcelsFromZipcode() foreach ($parcels as $parcel) { $this->assertInstanceOf(Parcelshop::class, $parcel); } - } public function testSetLimit()