Permalink
Browse files

Fixed risky test in TemplateTestCampaignTest

  • Loading branch information...
1 parent affb1b0 commit 6ea0093b42abe63e20246267d73be675fcdf3a3d @JeroenDeDauw JeroenDeDauw committed Feb 15, 2017
Showing with 9 additions and 9 deletions.
  1. +9 −9 tests/Unit/Presentation/TemplateTestCampaignTest.php
@@ -73,7 +73,15 @@ public function testHasEnded() {
$this->assertFalse( $notFinishedCampaign->hasEnded() );
}
- public function testIsRunningDataProvider() {
+ /**
+ * @dataProvider isRunningDataProvider
+ */
+ public function testIsRunning( bool $expected, array $data ) {
+ $campaign = $this->newCampaign( $data );
+ $this->assertSame( $expected, $campaign->isRunning() );
+ }
+
+ public function isRunningDataProvider() {
return [
[
true,
@@ -110,12 +118,4 @@ public function testIsRunningDataProvider() {
];
}
- /**
- * @dataProvider testIsRunningDataProvider
- */
- public function testIsRunning( bool $expected, array $data ) {
- $campaign = $this->newCampaign( $data );
- $this->assertSame( $expected, $campaign->isRunning() );
- }
-
}

0 comments on commit 6ea0093

Please sign in to comment.