Advertisement
Guest User

Untitled

a guest
Feb 20th, 2014
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php
  2. use OneTimeNote\Commands\OneTimeNoteDeleteCommand;
  3. use OneTimeNote\Repositories\NoteRepositoryInterface as Note;
  4. use Symfony\Component\Console\Tester\CommandTester;
  5.  
  6. class OneTimeNoteDeleteCommandTest extends TestCase {
  7.     protected $mock;
  8.     protected $note;
  9.  
  10.     public function setUp() {
  11.         parent::setUp();
  12.     }
  13.  
  14.     public function tearDown() {
  15.         Mockery::close();
  16.     }
  17.  
  18.     public function testCommandOptionsSuccess()
  19.     {
  20.         $mock = Mockery::mock('OneTimeNote\Repositories\NoteRepositoryInterface');
  21.         $mock->shouldReceive('deleteNotesOlderThan')
  22.              ->once()
  23.              ->andReturn(true);
  24.        
  25.         // What do I do here ?!
  26.         $command = ?????
  27.         $tester = new CommandTester($command);
  28.         $tester->execute(['--days' => 30]);
  29.     }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement