-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add treasury:ffa017. To be closed by #3
- Loading branch information
1 parent
a04c137
commit b9ef06c
Showing
2 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
``` |
This file contains 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
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]' | ||
)); | ||
} | ||
|
||
} |