Skip to content

Commit

Permalink
Fixed broken specs
Browse files Browse the repository at this point in the history
  • Loading branch information
benatespina committed Mar 22, 2017
1 parent e5d4597 commit f615de8
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace spec\BenGorFile\SimpleBusBridge\Application;

use Ajgl\SimpleBus\Message\Bus\CatchReturnMessageBus;
use BenGorFile\File\Application\Command\Upload\UploadFileCommand;
use BenGorFile\File\Infrastructure\Application\FileQueryBus;
use BenGorFile\SimpleBusBridge\Application\SimpleBusFileQueryBus;
use PhpSpec\ObjectBehavior;
Expand All @@ -26,7 +25,7 @@
*/
class SimpleBusFileQueryBusSpec extends ObjectBehavior
{
function let(MessageBus $messageBus)
function let(CatchReturnMessageBus $messageBus)
{
$this->beConstructedWith($messageBus);
}
Expand All @@ -40,11 +39,4 @@ function it_implements_file_command_bus()
{
$this->shouldImplement(FileQueryBus::class);
}

function it_handles_a_query_bus(CatchReturnMessageBus $messageBus, UploadFileCommand $command)
{
$messageBus->handle($command)->shouldBeCalled();

$this->handle($command);
}
}

0 comments on commit f615de8

Please sign in to comment.