Code Duplication    Length = 21-21 lines in 3 locations

Tests/Units/Event/PostRemoveEventTests.php 1 location

@@ 22-42 (lines=21) @@
19
 *
20
 * Generated by TestGenerator on 2016-10-04 at 15:35:22.
21
 */
22
class PostRemoveEventTests extends TestCase
23
{
24
    /**
25
     * Test Aggregate method.
26
     */
27
    public function testAggregate()
28
    {
29
        $this
30
            ->given(
31
                $post = PostEventSourcedFactory::create(
32
                    $this->faker->sentence,
33
                    $this->faker->paragraph
34
                )
35
            )
36
            ->and($event = new PostRemoveEvent($post))
37
            ->then()
38
                ->object($event->aggregate())
39
                    ->isEqualTo($post)
40
        ;
41
    }
42
}
43

Tests/Units/Event/PrePersistEventTests.php 1 location

@@ 22-42 (lines=21) @@
19
 *
20
 * Generated by TestGenerator on 2016-07-26 at 14:15:46.
21
 */
22
class PrePersistEventTests extends TestCase
23
{
24
    /**
25
     * Test Aggregate method.
26
     */
27
    public function testAggregate()
28
    {
29
        $this
30
            ->given(
31
                $post = PostEventSourcedFactory::create(
32
                    $this->faker->sentence,
33
                    $this->faker->paragraph
34
                )
35
            )
36
            ->and($event = new PrePersistEvent($post))
37
            ->then()
38
                ->object($event->aggregate())
39
                    ->isEqualTo($post)
40
        ;
41
    }
42
}
43

Tests/Units/Event/PreRemoveEventTests.php 1 location

@@ 22-42 (lines=21) @@
19
 *
20
 * Generated by TestGenerator on 2016-10-04 at 15:35:22.
21
 */
22
class PreRemoveEventTests extends TestCase
23
{
24
    /**
25
     * Test Aggregate method.
26
     */
27
    public function testAggregate()
28
    {
29
        $this
30
            ->given(
31
                $post = PostEventSourcedFactory::create(
32
                    $this->faker->sentence,
33
                    $this->faker->paragraph
34
                )
35
            )
36
            ->and($event = new PreRemoveEvent($post))
37
            ->then()
38
                ->object($event->aggregate())
39
                    ->isEqualTo($post)
40
        ;
41
    }
42
}
43