-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade dependencies * Fix existing youtube test * Add test for failing case * Add playwright tests to CI * Revert composer update * Only update helioviewer event interface
- Loading branch information
1 parent
45ff067
commit c451f40
Showing
4 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php declare(strict_types=1); | ||
|
||
/** | ||
* @author Daniel Garcia-Briseno <daniel.garciabriseno@nasa.gov> | ||
*/ | ||
|
||
use PHPUnit\Framework\Attributes\Group; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
require_once HV_ROOT_DIR . "/../src/Helper/EventInterface.php"; | ||
|
||
final class EventInterfaceTest extends TestCase { | ||
/** | ||
* Issue: https://github.com/Helioviewer-Project/helioviewer.org/issues/626 | ||
* Error was caused by Flare Scoreboard data having invalid coordinates. | ||
* This test gets the events which were causing the error to verify that | ||
* no error occurs anymore. | ||
*/ | ||
#[Group('event interface')] | ||
public function testGetEventsOnDateWithQuestionableData(): void { | ||
// Original error was that an exception was thrown. | ||
$this->expectNotToPerformAssertions(); | ||
Helper_EventInterface::GetEvents( | ||
new DateTimeImmutable("2015-11-03"), | ||
new DateInterval('P1D'), | ||
new DateTimeImmutable('2015-11-03T15:00:00'), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters