Skip to content

Commit

Permalink
Merge pull request #832 from wmde/TemplateTestCampaignTest
Browse files Browse the repository at this point in the history
Fixed risky test in TemplateTestCampaignTest
  • Loading branch information
KaiNissen committed Feb 15, 2017
2 parents 76d31e4 + 6ea0093 commit 4081da6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Unit/Presentation/TemplateTestCampaignTest.php
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 4081da6

Please sign in to comment.