Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use OneTimeNote\Commands\OneTimeNoteDeleteCommand;
- use OneTimeNote\Repositories\NoteRepositoryInterface as Note;
- use Symfony\Component\Console\Tester\CommandTester;
- class OneTimeNoteDeleteCommandTest extends TestCase {
- protected $mock;
- protected $note;
- public function setUp() {
- parent::setUp();
- }
- public function tearDown() {
- Mockery::close();
- }
- public function testCommandOptionsSuccess()
- {
- $mock = Mockery::mock('OneTimeNote\Repositories\NoteRepositoryInterface');
- $mock->shouldReceive('deleteNotesOlderThan')
- ->once()
- ->andReturn(true);
- // What do I do here ?!
- $command = ?????
- $tester = new CommandTester($command);
- $tester->execute(['--days' => 30]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement