Skip to content

Commit

Permalink
Merge pull request #3 from rayrutjes/removed-unused-stuff
Browse files Browse the repository at this point in the history
Removed AppendSingleEventToStream related stuff.
  • Loading branch information
rayrutjes committed Mar 3, 2016
2 parents d650eb7 + 4fd9459 commit 9ec6c17
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 95 deletions.
57 changes: 0 additions & 57 deletions src/Client/Http/AppendSingleToStreamRequestFactory.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use RayRutjes\GetEventStore\ExpectedVersion;
use RayRutjes\GetEventStore\StreamId;

final class AppendMultipleToStreamRequestFactory implements RequestFactoryInterface
final class AppendToStreamRequestFactory implements RequestFactoryInterface
{
/**
* @var StreamId
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Http/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function appendToStream(string $streamId, int $expectedVersion, array $ev

$expectedVersion = new ExpectedVersion($expectedVersion);

$request = new AppendMultipleToStreamRequestFactory($streamId, $expectedVersion, $events);
$request = new AppendToStreamRequestFactory($streamId, $expectedVersion, $events);

$this->send($request->buildRequest(), new AppendToStreamResponseInspector());
}
Expand Down
33 changes: 0 additions & 33 deletions tests/Unit/Http/AppendSingleToStreamRequestFactoryTest.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace RayRutjes\GetEventStore\Unit\Http;

use RayRutjes\GetEventStore\Client\Http\AppendMultipleToStreamRequestFactory;
use RayRutjes\GetEventStore\Client\Http\AppendToStreamRequestFactory;
use RayRutjes\GetEventStore\Client\Http\ContentType;
use RayRutjes\GetEventStore\Client\Http\RequestHeader;
use RayRutjes\GetEventStore\EventData;
Expand All @@ -11,7 +11,7 @@
use RayRutjes\GetEventStore\StreamId;
use RayRutjes\GetEventStore\Test\TestCase;

class AppendMultipleToStreamRequestFactoryTest extends TestCase
class AppendToStreamRequestFactoryTest extends TestCase
{
public function testCanBuildARequest()
{
Expand Down Expand Up @@ -45,7 +45,7 @@ public function testCanBuildARequest()
EOD;
$expectedBody = sprintf(str_replace([' ', "\n"], '', $expectedBody), $uuid1, $uuid2);

$cut = new AppendMultipleToStreamRequestFactory(
$cut = new AppendToStreamRequestFactory(
new StreamId('stream'),
new ExpectedVersion(ExpectedVersion::ANY),
EventDataCollection::fromArray([$event1, $event2])
Expand Down

0 comments on commit 9ec6c17

Please sign in to comment.