mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-03 20:25:33 +01:00
Generated output filenames should match the input filename
This commit is contained in:
parent
2e8e58abd0
commit
052629ff7d
2 changed files with 32 additions and 2 deletions
|
@ -33,6 +33,33 @@ class GenerateFiltersTest extends TestCase
|
|||
$this->fs->remove([self::OUTPUT_FILENAME]);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function the_output_filename_matches_the_input_name()
|
||||
{
|
||||
$this->commandTester->execute([
|
||||
'--input-file' => self::INPUT_FILENAME,
|
||||
]);
|
||||
|
||||
$this->assertTrue($this->fs->exists('input.xml'));
|
||||
|
||||
$this->fs->remove('input.xml');
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function the_output_filename_can_be_set_explicity()
|
||||
{
|
||||
$outputFilename = 'a-different-filename.xml';
|
||||
|
||||
$this->commandTester->execute([
|
||||
'--input-file' => self::INPUT_FILENAME,
|
||||
'--output-file' => $outputFilename,
|
||||
]);
|
||||
|
||||
$this->assertTrue($this->fs->exists($outputFilename));
|
||||
|
||||
$this->fs->remove($outputFilename);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_converts_filters_from_php_to_minified_xml()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue