Skip to content

Commit

Permalink
add treasury:ffa017. To be closed by #3
Browse files Browse the repository at this point in the history
  • Loading branch information
shadiakiki1986 committed Apr 11, 2017
1 parent a04c137 commit b9ef06c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,23 @@ The rewrite process will start with the treasury debit interests report and grad
## treasury: SOA
Old
```bash
php bin/treasury-soa.php format=email emailTo=shadi@akikieng.com base=Dubai
php bin/treasury-soa.php format=email emailTo=shadi@akikieng.com base=Dubai notifyTracker=true publishToBlog=true
php bin/treasury-soa.php format=email emailTo="some@email.com;[email protected]" base=Dubai
php bin/treasury-soa.php format=email emailTo="some@email.com;[email protected]" base=Dubai notifyTracker=true publishToBlog=true
```

To become
```
php bin/ffa.php treasury:soa --base=Dubai --format=email --emailTo="[email protected];[email protected]"
php bin/ffa.php treasury:soa --base=Dubai --format=email --emailTo="[email protected];[email protected]" --notifyTracker --publishToBlog
```

## treasury: FFA017
Old
```bash
php bin/treasury-ffa017.php emailTo="[email protected];[email protected]"
```

To become
```
php bin/ffa.php treasury:ffa017 --emailTo="[email protected];[email protected]"
```
28 changes: 28 additions & 0 deletions tests/FfaPhp/Console/Command/TreasuryFfa017Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace FfaPhp\Console\Command;

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;

// http://symfony.com/doc/current/console.html#testing-commands
class TreasuryFfa017Test extends\PHPUnit_Framework_TestCase
{

public function setUp() {
$application = new Application();
$application->add(new TreasuryFfa017());

$this->command = $application->find('treasury:ffa017');
$this->commandTester = new CommandTester($this->command);
}

public function testExecuteEmailto()
{
$this->commandTester->execute(array(
'command' => $this->command->getName(),
'--emailTo' => '[email protected];[email protected]'
));
}

}

0 comments on commit b9ef06c

Please sign in to comment.