Created
September 23, 2015 15:00
-
-
Save StanAngeloff/559cb48a9f28484ae320 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
# snip... | |
/** | |
* @test | |
*/ | |
public function distributeCreatesANewFile() | |
{ | |
$this->distributionRepository->findOneBySegmentName(Argument::exact('Segment 1')) | |
->shouldBeCalled() | |
->willReturn($this->distribution); | |
$this->service->distribute('Segment 1'); | |
$this->assertDirectoryStructure([ | |
'root' => [ | |
'var' => [ | |
'distribution' => [ | |
'Segment 1.csv' => '', | |
], | |
], | |
], | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment