Skip to content

Commit

Permalink
Fixed risky test in TemplateTestCampaignTest
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Feb 15, 2017
1 parent affb1b0 commit 6ea0093
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Unit/Presentation/TemplateTestCampaignTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.