Skip to content

Commit

Permalink
Fixed failing unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rugaard committed Nov 9, 2019
1 parent e97a5fe commit 07be301
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DMI.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,4 +783,4 @@ public function getClient() :? ClientInterface
{
return $this->client;
}
}
}
2 changes: 1 addition & 1 deletion src/DTO/Pollen.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function parse(array $data) : void
{
$this->setName($data['name']);

if (isset($data['forecast']) && $data['forecast']->count() > 0) {
if (isset($data['forecast'])) {
$this->setForecast($data['forecast']);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Endpoints/Pollen.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public function parse(array $data) : void
]),
]));
}
}
}
2 changes: 1 addition & 1 deletion tests/Endpoints/PollenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ public function testFailedRequest() : void
// Get pollen data.
$dmi->pollen();
}
}
}

0 comments on commit 07be301

Please sign in to comment.