<?php

namespace CultuurNet\UDB3\Role\Events;

use PHPUnit\Framework\TestCase;
use ValueObjects\Identity\UUID;

class AbstractEventTest extends TestCase
{
    /**
     * @var UUID
     */
    protected $uuid;

    /**
     * @var AbstractEvent
     */
    protected $event;

    protected function setUp()
    {
        $this->uuid = new UUID();

        $this->event = $this->getMockForAbstractClass(
            AbstractEvent::class,
            [$this->uuid]
        );
    }

    /**
     * @test
     */
    public function it_stores_a_uuid()
    {
        $this->assertEquals($this->uuid, $this->event->getUuid());
    }

    /**
     * @test
     */
    public function it_can_serialize()
    {
        $actualArray = $this->event->serialize();

        $expectedArray = ['uuid' => $this->uuid->toNative()];

        $this->assertEquals($expectedArray, $actualArray);
    }
}

<?php

namespace CultuurNet\UDB3\Role\Events;

use PHPUnit\Framework\TestCase;
use ValueObjects\Identity\UUID;

class AbstractEventTest extends TestCase
{
    /**
     * @var UUID
     */
    protected $uuid;

    /**
     * @var AbstractEvent
     */
    protected $event;

    protected function setUp()
    {
        $this->uuid = new UUID();

        $this->event = $this->getMockForAbstractClass(
            AbstractEvent::class,
            [$this->uuid]
        );
    }

    /**
     * @test
     */
    public function it_stores_a_uuid()
    {
        $this->assertEquals($this->uuid, $this->event->getUuid());
    }

    /**
     * @test
     */
    public function it_can_serialize()
    {
        $actualArray = $this->event->serialize();

        $expectedArray = ['uuid' => $this->uuid->toNative()];

        $this->assertEquals($expectedArray, $actualArray);
    }

    /**
     * @test
     */
    public function it_can_deserialize()
    {
        $data = ['uuid' => $this->uuid->toNative()];
        $actualEvent = $this->event->deserialize($data);
        $expectedEvent = $this->event;

        $this->assertEquals($actualEvent, $expectedEvent);
    }
}

--- 
+++ 
@@ -46,16 +46,4 @@
 
         $this->assertEquals($expectedArray, $actualArray);
     }
-
-    /**
-     * @test
-     */
-    public function it_can_deserialize()
-    {
-        $data = ['uuid' => $this->uuid->toNative()];
-        $actualEvent = $this->event->deserialize($data);
-        $expectedEvent = $this->event;
-
-        $this->assertEquals($actualEvent, $expectedEvent);
-    }
 }
Fix test broken by removed deserialize() method
