public function testGeneratedEventNameIsReturnedWhenNoEventNameIsDefined() { $instance = new DummyCanPush(); $this->assertSame('test.system.pushable.dummy_can_push', $instance->getPushableEventType()); $instance = new BrandSelection(); $this->assertSame('gamma.brand_selection', $instance->getPushableEventType()); }
/** * @param BrandSelection $selection */ public function handle(BrandSelection $selection) { $instance = $selection->newInstance(['account_id' => $this->account->id]); //create the selections $this->brand->selection()->save($instance); }