Skip to content

Commit

Permalink
rename AdapterCanHandlerMock to TransactionalInMemoryAdapterMock as per
Browse files Browse the repository at this point in the history
@prolic suggestion

Signed-off-by: Jefersson Nathan <[email protected]>
  • Loading branch information
Jefersson Nathan committed Sep 14, 2016
1 parent aba1aed commit 6013fbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/EventStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Prooph\EventStore\EventStore;
use Prooph\EventStore\Stream\Stream;
use Prooph\EventStore\Stream\StreamName;
use ProophTest\EventStore\Mock\AdapterCanHandlerMock;
use ProophTest\EventStore\Mock\TransactionalInMemoryAdapterMock;
use ProophTest\EventStore\Mock\PostCreated;
use ProophTest\EventStore\Mock\TestDomainEvent;
use ProophTest\EventStore\Mock\UserCreated;
Expand Down Expand Up @@ -592,7 +592,7 @@ public function it_makes_rollback_when_event_is_stopped_during_commit()
*/
public function it_should_rollback_and_throw_exception_in_case_of_transaction_fail()
{
$eventStore = new EventStore(new AdapterCanHandlerMock(), new ProophActionEventEmitter());
$eventStore = new EventStore(new TransactionalInMemoryAdapterMock(), new ProophActionEventEmitter());

$this->setExpectedException(\Exception::class, 'Transaction failed');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
use Prooph\EventStore\Adapter\InMemoryAdapter;

/**
* Class AdapterCanHandlerMock
* Class TransactionalInMemoryAdapterMock
*
* @package ProophTest\EventStore
* @author Jefersson Nathan <[email protected]>
*/
final class AdapterCanHandlerMock extends InMemoryAdapter implements CanHandleTransaction
final class TransactionalInMemoryAdapterMock extends InMemoryAdapter implements CanHandleTransaction
{
/**
* {@inheritDoc}
Expand Down

0 comments on commit 6013fbd

Please sign in to comment.