/** * @test */ public function it_happend_to_an_activity() { $id = ActivityId::generate(); $event = new ActivityCategorized($id, Activity::SOCIAL); $this->assertEquals($id, $event->activityId()); $this->assertEquals(Activity::SOCIAL, $event->category()); }
protected function applyActivityCategorized(ActivityCategorized $event) { $this->category = $event->category(); }